diff --git a/app/js/platform/first.js b/app/js/platform/first.js index d309c3d4..dd255b09 100644 --- a/app/js/platform/first.js +++ b/app/js/platform/first.js @@ -283,3 +283,16 @@ function statusModel(now) { poll: null } } +/* PWA */ +if(pwa) { + function postMessage(e) { + if (e[0] == 'openUrl') { + urls = e.data[1].match(/https?:\/\/(.+)/) + if (urls) { + if(confirm("Open: " + url)) { + window.open(url) + } + } + } + } +} \ No newline at end of file