gwt.material.design.client.resources.js.app-installer.min.js Maven / Gradle / Ivy
function AppInstaller(n){window.install.canPrompt(n).then(function(){})["catch"](function(t){n.call(t)}),this.prompt=function(){window.install.prompt().then(function(n){})["catch"](function(t){n.call(t)})},this.isLaunched=function(n){return window.matchMedia("(display-mode: "+n+")").matches}}!function(){var n,t,e=!1,o=new Promise(function(n,e){t=n});window.addEventListener("beforeinstallprompt",function(o){return e=!0,o.preventDefault(),n=o,t(),!1});var i={};Object.defineProperty(i,"isAvailable",{get:function(){return e}}),i.canPrompt=function(){return o},i.prompt=function(){return new Promise(function(t,o){e===!1&&o("User Agent decided not to prompt"),n.prompt().then(function(){return n.userChoice}).then(function(n){t(n.outcome)})["catch"](function(n){o(n)})})},window.install=i}();
© 2015 - 2024 Weber Informatics LLC | Privacy Policy