diff --git a/src/public/app/widgets/type_widgets/web_view.ts b/src/public/app/widgets/type_widgets/web_view.ts index cc2fb1cae..3e57bce03 100644 --- a/src/public/app/widgets/type_widgets/web_view.ts +++ b/src/public/app/widgets/type_widgets/web_view.ts @@ -5,8 +5,6 @@ import type FNote from "../../entities/fnote.js"; import type { EventData } from "../../components/app_context.js"; import utils from "../../services/utils.js"; -const el = utils.isElectron() ? "webview" : "iframe"; - const TPL = `
@@ -21,9 +19,17 @@ const TPL = `

${t("web_view.experimental_note")}

- <${el} class="note-detail-web-view-content"> + ${buildElement()}
`; +function buildElement() { + if (!utils.isElectron()) { + return ``; + } else { + return ``; + } +} + export default class WebViewTypeWidget extends TypeWidget { private $noteDetailWebViewHelp!: JQuery;