Created
April 12, 2016 22:48
-
-
Save jsscclr/3fbd87c7534679f7c5400a6a9cea7d70 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
function Presentation() { | |
} | |
Presentation.prototype.requestShow = function(url) { | |
return new Promise(function(resolve, reject) { | |
presentationWindow = window.open(url, "", "presentation"); | |
if (presentationWindow) | |
presentationWindow.onload = function() { resolve(presentationWindow); }; | |
else | |
reject(); | |
}); | |
}; | |
navigator.presentation = new Presentation(); | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment