diff --git a/src/managers/views/iframe.js b/src/managers/views/iframe.js index 5b23275..61bf830 100644 --- a/src/managers/views/iframe.js +++ b/src/managers/views/iframe.js @@ -381,7 +381,15 @@ class IframeView { } this.iframe.contentDocument.open(); - this.iframe.contentDocument.write(contents); + // For Cordova windows platform + if(window.MSApp && MSApp.execUnsafeLocalFunction) { + var outerThis = this; + MSApp.execUnsafeLocalFunction(function () { + outerThis.iframe.contentDocument.write(contents); + }); + } else { + this.iframe.contentDocument.write(contents); + } this.iframe.contentDocument.close(); }