diff --git a/pages/settings/settings.pixy b/pages/settings/settings.pixy index 13a86784..e3c78740 100644 --- a/pages/settings/settings.pixy +++ b/pages/settings/settings.pixy @@ -101,6 +101,12 @@ component Settings(user *arn.User) Icon("chrome") span Get the Chrome Extension + .widget-input + label Desktop App: + button.action(data-action="installApp", data-trigger="click") + Icon("desktop") + span Get the Desktop App + .widget-input label Android App: a.button(href="https://www.youtube.com/watch?v=opyt4cw0ep8", target="_blank", rel="noopener") diff --git a/scripts/Actions.ts b/scripts/Actions.ts index 901d7871..aa1e925a 100644 --- a/scripts/Actions.ts +++ b/scripts/Actions.ts @@ -306,4 +306,9 @@ export function removeAnimeFromCollection(arn: AnimeNotifier, button: HTMLElemen export function installExtension(arn: AnimeNotifier, button: HTMLElement) { let browser: any = window["chrome"] browser.webstore.install() +} + +// Desktop app installation +export function installApp() { + alert("Open your browser menu > 'More tools' > 'Add to desktop' and enable 'Open as window'.") } \ No newline at end of file