Added patch to WRY for ipc connector
This commit is contained in:
+2
-7
@@ -1,12 +1,7 @@
|
||||
(function() {
|
||||
const originalOpen = window.open;
|
||||
var originalOpen = window.open;
|
||||
window.open = function(url) {
|
||||
if (url && url.toString().includes('helpalert.html')) {
|
||||
document.documentElement.innerHTML =
|
||||
'<head><style>*{margin:0;padding:0}html,body{height:100%;overflow:hidden}iframe{width:100%;height:100%;border:none}</style></head>' +
|
||||
'<body><iframe src="https://helpalert.wvumedicine.org/PinPoint/helpalert.html"></iframe></body>';
|
||||
return null;
|
||||
}
|
||||
if (url) { window.location.href = url; return null; }
|
||||
return originalOpen.apply(this, arguments);
|
||||
};
|
||||
})();
|
||||
Reference in New Issue
Block a user