Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Updates test file to check if MSApp.execUnsafeLocalFunction exsists b…
…efore calling it
  • Loading branch information
AmazingJaze committed Mar 25, 2016
1 parent 62d3d60 commit dbed57a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tasks/test.js
Expand Up @@ -179,8 +179,12 @@
<script> \r\n\
if (window.MSApp) { \r\n\
window.addEventListener("error", function () { return true; }); \r\n\
window.removeEventListener("load", QUnit.load); \r\n\
window.addEventListener("load", function () { MSApp.execUnsafeLocalFunction(function () { QUnit.load(); }); }); \r\n\
if(window.MSApp.execUnsafeLocalFunction) { /* This API was removed in Windows 10 */ \r\n\
window.removeEventListener("load", QUnit.load); \r\n\
window.addEventListener("load", function () { \r\n\
MSApp.execUnsafeLocalFunction(function () { QUnit.load(); }); \r\n\
}); \r\n\
} \r\n\
WinJS.Resources.getString = WinJS.Resources._getStringJS; \r\n\
} \r\n\
</script> \r\n\
Expand Down

0 comments on commit dbed57a

Please sign in to comment.