Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adding page watcher #22

Merged
merged 1 commit into from
Aug 7, 2024
Merged

feat: adding page watcher #22

merged 1 commit into from
Aug 7, 2024

Conversation

DanielHe4rt
Copy link
Contributor

@DanielHe4rt DanielHe4rt commented Aug 7, 2024

Motivation

One of our goals is to provide a smooth integration with Twitch as a whole, but until now we only supported the actual refreshed browser tab and if you switch to another inside Twitch, the app stops working.

Changes

  • Added base Kernel for upcoming watchers/observers
  • Added Page Watcher to validate if you need to restart the current observer.

Closes #21

@@ -1,6 +1,6 @@
import type { PlasmoCSConfig } from "plasmo";

import { appLoader } from "~scripting";
import Kernel from "@Scripting/index";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably going to be reverted eventually, nobody in the ecosystem uses PascalCase on the path aliases.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, the preferred way of exporting is not default in most of the cases. So we would have:

Suggested change
import Kernel from "@Scripting/index";
import { Kernel } from "@scripting";

This is probably what we will be aiming at. But this can be changed later

@Daniel-Boll Daniel-Boll merged commit 2f8f1a4 into main Aug 7, 2024
@DanielHe4rt DanielHe4rt deleted the feat/page-watcher branch August 7, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature: active tab watcher
2 participants