Time to worker on marketplace proxying & hostname switching
This will be HELL
This commit is contained in:
parent
202b9946e2
commit
5dc222a0df
1 changed files with 0 additions and 1 deletions
|
|
@ -85,7 +85,6 @@ const marketPlaceSettings = {
|
||||||
plugins.forEach(async (plugin: Plugin) => {
|
plugins.forEach(async (plugin: Plugin) => {
|
||||||
if (plugin.type === "page") {
|
if (plugin.type === "page") {
|
||||||
const pluginScript = await fetch(`/packages/${plugin.name}/${plugin.src}`).then((res) => res.text());
|
const pluginScript = await fetch(`/packages/${plugin.name}/${plugin.src}`).then((res) => res.text());
|
||||||
console.log(`Plugin: ${plugin.name} has the following: ${pluginScript}`);
|
|
||||||
const script = eval(pluginScript);
|
const script = eval(pluginScript);
|
||||||
const inject = await script() as unknown as SWPlugin;
|
const inject = await script() as unknown as SWPlugin;
|
||||||
if (plugin.remove) {
|
if (plugin.remove) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue