use webview instead of iframe

This commit is contained in:
zadam 2022-05-29 17:42:09 +02:00
parent ee217d6306
commit 01155ad535
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@ const TPL = `
<p>Please create label with a URL address you want to embed, e.g. <code>#iframeSrc="http://www.google.com"</code></p> <p>Please create label with a URL address you want to embed, e.g. <code>#iframeSrc="http://www.google.com"</code></p>
</div> </div>
<iframe class="note-detail-iframe-content"></iframe> <webview class="note-detail-iframe-content"></webview>
</div>`; </div>`;
export default class IframeTypeWidget extends TypeWidget { export default class IframeTypeWidget extends TypeWidget {

View File

@ -67,7 +67,8 @@ async function createMainWindow() {
enableRemoteModule: true, enableRemoteModule: true,
nodeIntegration: true, nodeIntegration: true,
contextIsolation: false, contextIsolation: false,
spellcheck: spellcheckEnabled spellcheck: spellcheckEnabled,
webviewTag: true
}, },
frame: optionService.getOptionBool('nativeTitleBarVisible'), frame: optionService.getOptionBool('nativeTitleBarVisible'),
icon: getIcon() icon: getIcon()