Skip to content

Commit

Permalink
Handle Google Chrome >= version 115 deprecation of the "document.domain"
Browse files Browse the repository at this point in the history
setter.
  • Loading branch information
sandsm committed Aug 25, 2023
1 parent fb9d0ee commit 9193f21
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions skyve-war/src/main/webapp/pages/login.jsp
Expand Up @@ -164,29 +164,6 @@
</head>
<body onload="document.forms['loginForm'].elements['<%=(customer == null) ? customerFieldName : userFieldName%>'].focus()">
<SCRIPT>//'"]]>>isc_loginRequired
if (!window.isc && document.domain && document.domain.indexOf(".") != -1
&& !(new RegExp("^(\\d{1,3}\\.){3}\\d{1,3}$").test(document.domain)))
{
var set = false;
while (document.domain.indexOf(".") != -1) {
try {
if (window.opener && window.opener.isc) break;
if (window.top.isc) break;
if (!set) { document.domain = document.domain; set = true; }
else { document.domain = document.domain.replace(/.*?\./, ''); }
} catch (e) {
try {
if (!set) { document.domain = document.domain; set = true }
else { document.domain = document.domain.replace(/.*?\./, ''); }
} catch (ee) {
break;
}
}
}
}
var isc = top.isc ? top.isc : window.opener ? window.opener.isc : null;
if (isc && isc.RPCManager) isc.RPCManager.delayCall("handleLoginRequired", [window]);
</SCRIPT>
Expand Down

0 comments on commit 9193f21

Please sign in to comment.