All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gwt.material.design.client.resources.js.app-installer.min.js Maven / Gradle / Ivy

There is a newer version: 2.8.3
Show newest version
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