You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
delete window.open will restore original window.open function on Electron platform or update documentation.
What does actually happen?
delete window.open removes any window.open implementaiton in Electron wrapper.
Information
The command to revert window.open replacement proposed in documentation does not work with Electron platform as there is no window.__proto__.open function in place.
Thus I had to fix it in another, maybe not valid, way.
document.addEventListener('deviceready', () => {
if (cordova.platformId === "electron") {
// working revert of InAppBrowser window.open function replacement
window.open = cordova.require("cordova/modulemapper").getOriginalSymbol(window, 'window.open');
// window.open("url","_blank", null) is of instance electron.BrowserWindow
}
});
Command or Code
document.addEventListener('deviceready', () => {
if (cordova.platformId === "electron") {
// non-working revert of InAppBrowser window.open function replacement
delete window.open;
// window.open === undefined
}
});
Environment, Platform, Device
Windows + Electron platform
Version information
All releavant on latest as of today:
Cordova CLI 9.0.1
cordova-electron 1.1.1
cordova-ios 5.1.1
cordova-plugin-inappbrowser 3.2.0
Checklist
I searched for existing GitHub issues
I updated all Cordova tooling to most recent version
I included all the necessary information above
The text was updated successfully, but these errors were encountered:
Bug Report
Problem
What is expected to happen?
delete window.open
will restore original window.open function on Electron platform or update documentation.What does actually happen?
delete window.open
removes any window.open implementaiton in Electron wrapper.Information
The command to revert
window.open
replacement proposed in documentation does not work with Electron platform as there is nowindow.__proto__.open
function in place.Thus I had to fix it in another, maybe not valid, way.
Command or Code
Environment, Platform, Device
Windows + Electron platform
Version information
All releavant on latest as of today:
Cordova CLI 9.0.1
cordova-electron 1.1.1
cordova-ios 5.1.1
cordova-plugin-inappbrowser 3.2.0
Checklist
The text was updated successfully, but these errors were encountered: