pinokiod 1.0.41 → 1.0.43

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "1.0.41",
3
+ "version": "1.0.43",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -622,7 +622,7 @@ const renderSelection = (e, force) => {
622
622
  console.log("> url", url)
623
623
  document.querySelector("#open-browser").href = url
624
624
  document.querySelector("#clone-tab").setAttribute("data-href", url)
625
- document.querySelector("#location").innerHTML = url
625
+ // document.querySelector("#location").innerHTML = url
626
626
 
627
627
 
628
628
  // select the selected target element (tab)
@@ -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') {