Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
june07 committed May 21, 2024
1 parent 09da1a7 commit b0a22b2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nimv3",
"version": "3.6.8",
"version": "3.6.9",
"scripts": {
"dev": "vite --host",
"dev:extension": "npm-run-all --parallel build:dev watch:rollup:deps",
Expand Down
7 changes: 4 additions & 3 deletions src/devtoolsProtocolClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
}
})
}
delete cache.tabs[dtpSocket.socket]?.promise
//delete cache.tabs[dtpSocket.socket]?.promise
delete cache.tabs[dtpSocket.socket]
})
dtpSocket.ws.addEventListener('message', (event) => {
console.log('event: ', event)
Expand All @@ -62,8 +63,8 @@
clearInterval(interval)
}
}

const interval = setInterval(logReadyState, 1000)
// not sure this is needed anymore, seems to work fine now?! https://github.com/june07/nimv3/commit/5ee06e141e2dc6b33f08e394b89739152f723d50
// const interval = setInterval(logReadyState, 1000)
}
devtoolsProtocolClient.tasks = (socket, options) => {
const t1 = new Promise(resolve => {
Expand Down
6 changes: 6 additions & 0 deletions src/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,17 @@ async function openTab(host = 'localhost', port = 9229, manual) {
let devtoolsURL

if (!cache.tabs[cacheId]) {
if (settings.debugVerbosity >= 9) {
console.log('resetting cache.tabs')
}
cache.tabs[cacheId] = {
start: Date.now(),
hits: 0
}
};
if (settings.debugVerbosity >= 9) {
console.log('cache.tabs[cacheId]: ', cache.tabs[cacheId])
}
try {
// settings.DEVTOOLS_SCHEME can be null on initial startup
if ((!manual && cache.tabs[cacheId].promise) || !settings?.DEVTOOLS_SCHEME) {
Expand Down

0 comments on commit b0a22b2

Please sign in to comment.