Fix status badge on Safari (#270)

This commit is contained in:
Federico Brigante 2023-03-16 21:32:26 +08:00 committed by GitHub
parent ecdf25c9ad
commit a9b7f5954c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -21,8 +21,9 @@ NEXT_PROJECT_VERSION=$((PROJECT_VERSION + 1))
echo "Will bump the project version" "$PROJECT_VERSION"
echo "Run \`npm run watch\` in another shell, close it, then press any key."
echo "Run \`npm run watch -- --no-source-maps\` in another shell, close it, then press any key."
read -r
gsed -i '1s/^\(\xef\xbb\xbf\)\?/\xef\xbb\xbf/' distribution/*.js
npx dot-json distribution/manifest.json version "$TAG"
sed -i '' '/MARKETING_VERSION/d' $CONFIG_FILE

View File

@ -91,7 +91,7 @@ function handleMessages({code, count}, {tab}) {
if (code === 'connection-count') {
let text = '';
if (count === 1) {
text = '\u2713'; // ✓ checkmark. Safari encoding issue https://developer.apple.com/forums/thread/660798
text = '✓';
} else if (count > 1) {
text = String(count);
}