2018-04-02 05:34:16 +00:00
|
|
|
import AnimeNotifier from "../AnimeNotifier"
|
2017-10-17 09:27:15 +00:00
|
|
|
|
|
|
|
// Chrome extension installation
|
|
|
|
export function installExtension(arn: AnimeNotifier, button: HTMLElement) {
|
|
|
|
let browser: any = window["chrome"]
|
2018-04-24 11:29:46 +00:00
|
|
|
|
|
|
|
if(browser && browser.webstore) {
|
|
|
|
browser.webstore.install()
|
|
|
|
} else {
|
|
|
|
window.open("https://chrome.google.com/webstore/detail/anime-notifier/hajchfikckiofgilinkpifobdbiajfch", "_blank")
|
|
|
|
}
|
2017-10-17 09:27:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Desktop app installation
|
|
|
|
export function installApp() {
|
2018-10-11 03:09:12 +00:00
|
|
|
alert("Open your browser menu > 'Install Anime Notifier'.")
|
2017-10-17 09:27:15 +00:00
|
|
|
}
|