pinokiod 1.0.41 → 1.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server/views/browser.ejs +5 -0
package/package.json
CHANGED
package/server/views/browser.ejs
CHANGED
|
@@ -1155,6 +1155,11 @@ window.addEventListener('message', (event) => {
|
|
|
1155
1155
|
addTab(event.data.action.url)
|
|
1156
1156
|
} else if (event.data.action.type === "title") {
|
|
1157
1157
|
console.log("title", event.data)
|
|
1158
|
+
} else if (event.data.action.type === "location") {
|
|
1159
|
+
let url = event.data.action.url
|
|
1160
|
+
console.log({ action: event.data.action })
|
|
1161
|
+
document.querySelector("#open-browser").href = url
|
|
1162
|
+
document.querySelector("#location").innerHTML = url
|
|
1158
1163
|
}
|
|
1159
1164
|
} else if (event.data.type) {
|
|
1160
1165
|
if (event.data.type === 'disconnect') {
|