-
-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into docs/google-drive-sync
- Loading branch information
Showing
19 changed files
with
558 additions
and
625 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,19 @@ | ||
import 'crx-hotreload'; | ||
import './listeners'; | ||
|
||
import Cache from './cache'; | ||
import Listeners from './listeners'; | ||
import ContextMenu from './contextmenu'; | ||
import DefaultShortcutUpdate from './default-shortcut-update'; | ||
import StylesMetadataUpdate from './styles-metadata-update'; | ||
import StylesModifiedTimeUpdate from './styles-modified-time-update'; | ||
|
||
import { setNotification } from '@stylebot/utils'; | ||
|
||
(async () => { | ||
await DefaultShortcutUpdate(); | ||
await StylesMetadataUpdate(); | ||
await StylesModifiedTimeUpdate(); | ||
|
||
const { styles, options } = await Cache.init(); | ||
|
||
if (options.get('contextMenu')) { | ||
ContextMenu.init(); | ||
} | ||
|
||
Listeners.init(styles, options); | ||
|
||
chrome.browserAction.setBadgeBackgroundColor({ | ||
color: '#555', | ||
}); | ||
})(); | ||
|
||
chrome.runtime.onInstalled.addListener(async ({ reason }) => { | ||
if (reason === 'install') { | ||
chrome.tabs.create({ | ||
url: 'https://stylebot.dev/help' | ||
}); | ||
|
||
setNotification('release/3.1', true); | ||
} | ||
chrome.runtime.setUninstallURL('https://stylebot.dev/goodbye'); | ||
chrome.action.setBadgeBackgroundColor({ | ||
color: '#555', | ||
}); | ||
|
||
chrome.runtime.setUninstallURL('https://stylebot.dev/goodbye'); | ||
ContextMenu.init(); |
Oops, something went wrong.