Skip to content

Commit

Permalink
Remove intermediate loader as it is unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
acquitelol committed Nov 27, 2023
1 parent 98dd4da commit b22789c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Azalea",
"version": "3.5.4",
"version": "3.5.5",
"description": "The cutest SparxMaths extension for Chromium ~!",
"manifest_version": 3,
"author": "Rosie",
Expand Down
2 changes: 0 additions & 2 deletions src/loader/loader.ts

This file was deleted.

6 changes: 1 addition & 5 deletions src/loader/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,10 @@ chrome.runtime.onMessage.addListener(async (message, sender) => {
await chrome.storage.local.set({ azaleaHash: null, azalea: null });
}

const loader = await fetch(chrome.runtime.getURL('loader.js')).then(r => r.text());
const { azalea } = await promisifiedGet('azalea');

if (azalea) {
inject(
sender.tab.id,
loader.replace('INJECT_AZALEA_SOURCE', azalea),
);
inject(sender.tab.id, azalea);
}

if (update) {
Expand Down

0 comments on commit b22789c

Please sign in to comment.