17 lines
546 B
TypeScript
Raw Normal View History

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() {
alert("Open your browser menu > 'More tools' > 'Add to desktop' and enable 'Open as window'.")
}