Skip to content
Permalink
Browse files
CB-9342 Fix deviceReady event not fired on Windows 10 in hosted envir…
…onment
  • Loading branch information
daserge committed Aug 12, 2015
1 parent 6950f96 commit 5fdee87b2814bdafb9126f09bdb95f255db25d42
Showing 2 changed files with 6 additions and 2 deletions.
@@ -19,7 +19,9 @@
*
*/

if(window.cordova){
// Workaround for Windows 10 in hosted environment case
// http://www.w3.org/html/wg/drafts/html/master/browsers.html#named-access-on-the-window-object
if (window.cordova && !(window.cordova instanceof HTMLElement)) {
throw new Error("cordova already defined");
}

@@ -19,7 +19,9 @@
*
*/

if(window.cordova){
// Workaround for Windows 10 in hosted environment case
// http://www.w3.org/html/wg/drafts/html/master/browsers.html#named-access-on-the-window-object
if (window.cordova && !(window.cordova instanceof HTMLElement)) {
throw new Error("cordova already defined");
}

0 comments on commit 5fdee87

Please sign in to comment.