Skip to content

Commit

Permalink
Add conditional to identify save targets
Browse files Browse the repository at this point in the history
  • Loading branch information
neyberson committed Sep 6, 2024
1 parent a9a11ba commit 0fd4de2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion devtools/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@ async def populate_targets(self):
)
targets = {}
for json_response in response["result"]["targetInfos"]:
if json_response["type"] == "page":
if (
json_response["type"] == "page"
and json_response["targetId"] not in self.tabs
):
target_id = json_response["targetId"]
new_tab = Tab(target_id, self)
self.add_tab(new_tab)
Expand Down

0 comments on commit 0fd4de2

Please sign in to comment.