Async JavaScript load
This commit is contained in:
@ -3,7 +3,12 @@ import AnimeNotifier from "../AnimeNotifier"
|
||||
// Chrome extension installation
|
||||
export function installExtension(arn: AnimeNotifier, button: HTMLElement) {
|
||||
let browser: any = window["chrome"]
|
||||
browser.webstore.install()
|
||||
|
||||
if(browser && browser.webstore) {
|
||||
browser.webstore.install()
|
||||
} else {
|
||||
window.open("https://chrome.google.com/webstore/detail/anime-notifier/hajchfikckiofgilinkpifobdbiajfch", "_blank")
|
||||
}
|
||||
}
|
||||
|
||||
// Desktop app installation
|
||||
|
Reference in New Issue
Block a user