pinokiod 3.167.0 → 3.168.0

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": "3.167.0",
3
+ "version": "3.168.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -6288,13 +6288,17 @@ body.dark .pinokio-fork-dropdown-remote, body.dark .pinokio-publish-dropdown-rem
6288
6288
  rerenderMenuSection(submenu, dynamic)
6289
6289
  restoreAllTabStates()
6290
6290
  }
6291
+ const hasExistingSelection = Boolean(document.querySelector('.frame-link.selected'))
6291
6292
  let default_selection = document.querySelector(".dynamic .submenu [data-default]")
6292
6293
  if (default_selection) {
6293
6294
  const targetAttr = default_selection.getAttribute('target') || ''
6294
- if (typeof targetAttr === 'string' && targetAttr.startsWith('@http')) {
6295
+ const isPeerDefault = typeof targetAttr === 'string' && targetAttr.startsWith('@http')
6296
+ if (isPeerDefault) {
6295
6297
  ignorePersistedSelection = true
6296
6298
  }
6297
- default_selection.click()
6299
+ if (!hasExistingSelection || isPeerDefault) {
6300
+ default_selection.click()
6301
+ }
6298
6302
  }
6299
6303
  rendered = true
6300
6304
  } else {