mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-01-31 00:35:19 +01:00
16 lines
510 B
JavaScript
16 lines
510 B
JavaScript
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
window.addEventListener('DOMContentLoaded', () => {
|
|
let style = document.createElement('style')
|
|
style.textContent = __TEMPLATE_style__
|
|
document.head.append(style)
|
|
|
|
let iframe = document.createElement('iframe')
|
|
iframe.id = '__tauri_isolation__'
|
|
iframe.sandbox.add('allow-scripts')
|
|
iframe.src = __TEMPLATE_isolation_src__
|
|
document.body.append(iframe)
|
|
})
|