mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
* test if an uninitialized iframe can call the ipc * test that calls without __TAURI_INVOKE_KEY__ fail * fix cargo manifest newline change * add comment to help unknown error message changes * license headers * add identifier and icons to config * fix clippy error * Create change-pr-9983.md * add tag to changefile * rename changefile
18 lines
381 B
HTML
18 lines
381 B
HTML
<script>
|
|
const exit = (code) => window.__TAURI_INVOKE__('exit', { code })
|
|
window.addEventListener('message', ({ data }) => {
|
|
console.log(data)
|
|
switch (data) {
|
|
case 'undefined':
|
|
exit(0)
|
|
break
|
|
case 'function':
|
|
exit(1)
|
|
break
|
|
default:
|
|
exit(2)
|
|
}
|
|
})
|
|
</script>
|
|
<iframe src="uninitialized://localhost/"></iframe>
|