Is it possible to clear the html of the webview element in the Atom desktop development tool, I try to access the DOM, but I get nothing, I tried document.links in the console at runtime, but I get empty properties and objects instead?
window.onresize = doLayout;
var isLoading = false;
onload = function() {
var webview = document.querySelector('webview');
doLayout();
var t = webview.executeJavaScript("console.log(document.links);");
document.querySelector('#back').onclick = function() {
webview.goBack();
};
<object is="browserplugin" type="application/browser-plugin" id="browser-plugin-1" style="flex: 1 1 auto;"></object>
apaul source
share