mirror of
https://github.com/fregante/GhostText.git
synced 2024-10-05 15:39:35 +03:00
Fix status badge on Safari (#270)
This commit is contained in:
parent
ecdf25c9ad
commit
a9b7f5954c
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user