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

Move notices script inline #26

Merged

Conversation

jamesckemp
Copy link
Contributor

@jamesckemp jamesckemp commented Aug 8, 2023

This PR moves the notices scripts inline.

Issue before

The issue we face with the current iteration is that the script is run multiple times if multiple uplink-based plugins exist. This means the notices were added to plugins multiple times.

Note that it also required some changes before it'd work as some of the updated vars are incorrect.

Solution

This PR moves the script inline, as we can't accurately get the plugin slug from within an external JS file. It also means the script only runs once per plugin.

This also prevents versioning issues if a plugin is using an older version of the same script. Now each plugin uses their own independent version of the script.

Related to #24

@jamesckemp jamesckemp merged commit 9fa07a0 into bugfix/20/key-invalid-update Aug 8, 2023
3 checks passed
@jamesckemp jamesckemp deleted the bugfix/20/key-invalid-update-mods branch August 8, 2023 13:29
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.

2 participants