(function () {
Dashboard.importCss('devices/ie/ie.css');
function onPageShow() {
var page = this;
if (navigator.userAgent.toLowerCase().indexOf('windows nt 10.') != -1) {
var expectedValue = new Date().toDateString() + "1";
if (appStorage.getItem("ieswitchtoedge") == expectedValue) {
return;
}
var msg = Globalize.translate('MessageTryMicrosoftEdge');
msg += "
";
msg += '' + Globalize.translate('ButtonLearnMore') + '';
Dashboard.alert({
message: msg,
title: Globalize.translate('HeaderTryMicrosoftEdge')
});
appStorage.setItem("ieswitchtoedge", expectedValue);
}
}
pageClassOn('pageshow', "libraryPage", onPageShow);
pageClassOn('pageshow', "type-interior", onPageShow);
})();