wxt 0.19.3-alpha1 → 0.19.3

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.
@@ -161,8 +161,9 @@ export class ContentScriptContext {
161
161
  let isFirst = true;
162
162
  const cb = (event) => {
163
163
  if (event.data?.type === ContentScriptContext.SCRIPT_STARTED_MESSAGE_TYPE && event.data?.contentScriptName === this.contentScriptName) {
164
- if (isFirst && options?.ignoreFirstEvent) return;
164
+ const wasFirst = isFirst;
165
165
  isFirst = false;
166
+ if (wasFirst && options?.ignoreFirstEvent) return;
166
167
  this.notifyInvalidated();
167
168
  }
168
169
  };