From 32a5c79818d9d76013c6de43b7aad374928b0f05 Mon Sep 17 00:00:00 2001 From: eyedeekay Date: Fri, 7 Feb 2025 14:58:03 -0500 Subject: [PATCH] Call onContextsGot when windows are created --- background.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/background.js b/background.js index 55c08e0..b9e8a8c 100644 --- a/background.js +++ b/background.js @@ -58,6 +58,8 @@ function onContextsGot(contexts) { }); } +browser.windows.onCreated.addListener(onContextsGot); + // every time a window opens, call onContextsGot browser.tabs.onCreated.addListener(onContextsGot);