mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
chore(examples): use appWindow on multiwindow example
This commit is contained in:
@@ -16,8 +16,8 @@
|
||||
|
||||
<script>
|
||||
var WebviewWindow = window.__TAURI__.window.WebviewWindow
|
||||
var thisTauriWindow = window.__TAURI__.window.getCurrent()
|
||||
var windowLabel = thisTauriWindow.label
|
||||
var appWindow = window.__TAURI__.window.appWindow
|
||||
var windowLabel = appWindow.label
|
||||
var windowLabelContainer = document.getElementById('window-label')
|
||||
windowLabelContainer.innerText = 'This is the ' + windowLabel + ' window.'
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
var responseContainer = document.getElementById('response')
|
||||
// listener tied to this window
|
||||
thisTauriWindow.listen('clicked', function (event) {
|
||||
appWindow.listen('clicked', function (event) {
|
||||
responseContainer.innerText +=
|
||||
'Got ' + JSON.stringify(event) + ' on window listener\n\n'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user