Skip to content
Permalink
Browse files
CB-9066 Minor refactopring: windows8->windows
  • Loading branch information
sgrebnov committed May 27, 2015
1 parent 33ccc00 commit aea967614db19725380d14bbbc0e45268bd62438
Showing 1 changed file with 3 additions and 3 deletions.
@@ -31,7 +31,7 @@ var PLAT;
// than to Windows phone 8 we need to detect it separately.
windowsphone81: /Windows Phone 8.1/,
windowsphone: /Windows Phone/,
windows8: /MSAppHost/,
windows: /MSAppHost/,
firefoxos: /Firefox/
};
for (var key in platforms) {
@@ -49,7 +49,7 @@ if (!window._disableCSP) {
switch (PLAT) {
case 'android':
case 'ios':
case 'windows8':
case 'windows':
cspMetaContent = 'default-src \'self\' https://ssl.gstatic.com/accessibility/javascript/android/;' +
' connect-src \'self\' http://cordova-filetransfer.jitsu.com;' +
' media-src \'self\' http://cordova.apache.org/downloads/;' +
@@ -61,7 +61,7 @@ if (!window._disableCSP) {

if (cspMetaContent) {
cspMetaContent = '<meta http-equiv="Content-Security-Policy" content="' + cspMetaContent + '"/>';
if (PLAT == 'windows8') {
if (PLAT === 'windows' && MSApp && MSApp.execUnsafeLocalFunction) {
MSApp.execUnsafeLocalFunction(function () {
document.write(cspMetaContent);
});

0 comments on commit aea9676

Please sign in to comment.