Answer the question
In order to leave comments, you need to log in
NodeJS - How to hide HTML WebView code?
Good day. There is a web-view application on nodejs and electron.
The html initialization goes like this:
mainWindow.loadURL(`file://${__dirname}/index.html`);
var HTML="<html></html>";
mainWindow.load(HTML);
Answer the question
In order to leave comments, you need to log in
There is.
Without executing the script that is on the page
mainWindow.loadURL('data:text/html;charset=utf-8,<YOUR HTML/>');
mainWidnow.loadURL('data:text/html;charset=utf-8,<body>YOUR HTML<script>alert(1)</script></body>');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question