Permalink
Browse files

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 dbed57a305033f80e14659d886d6727d030b85e6
Showing with 6 additions and 2 deletions.
  1. +6 −2 tasks/test.js
View
@@ -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\

0 comments on commit dbed57a

Please sign in to comment.