i'm writing plugin to find out browser's language setting regardless of platforms.
scirra.com/forum/plugin-browser-language_topic74599.html
to support windows8, this plugin (runtime.js) need to call WinJS libray (Windows.System.UserProfile.GlobalizationPreferences.languages) like following.
if (typeof WinJS!="undefined") {//windows8
var codes = Windows.System.UserProfile.GlobalizationPreferences.languages;
code=codes[0].substr(0,2);
}
if set PNG recompression: None and uncheck Minify script in Windows8-Export Options , exported html works well in windows8 simulator.
but if set PNG recompression: Standard and check Minify script in Windows8-Export Options, exported html complains error with following message in windows8 simulator.
Unhandled exception at line 205, column 218 in ms-appx://89bc4ec2-6e35-4d51-aa67-a9c1041f101b/www/c2runtime.js
0x800a138f - JavaScript runtime error: Unable to get property 'on' of undefined or null reference
..."undefined"!=typeof WinJS&&(c=Windows.ln.on.um.Hn[0].substr(0,2)...
how can i remove this error.
thanks in advance