From e28c8f53be38548692e7eb1a2c819632e0585f01 Mon Sep 17 00:00:00 2001 From: Ruthenic Date: Sun, 11 Sep 2022 13:38:06 -0400 Subject: [PATCH] add URL to metadata of plugins installed via UI (this is a breaking change!) --- src/api/ui/settings/plugins.tsx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/api/ui/settings/plugins.tsx b/src/api/ui/settings/plugins.tsx index 5a756c3..98999a9 100644 --- a/src/api/ui/settings/plugins.tsx +++ b/src/api/ui/settings/plugins.tsx @@ -1,8 +1,3 @@ -//in theory this should never be unset? but just as a sanity check -//#ifnset _CORS_URL -//#set _CORS_URL = "https://cors.ruthenic.com/" -//#endif - import { React, nests, nestsReact } from "../../common"; import { add } from "../../plugin"; import webpack from "../../webpack"; @@ -24,7 +19,7 @@ export default () => { { const text = await ( await fetch("$_CORS_URL" + input) ).text(); - add(text); + add(text, { + url: input + }); setInput(""); } }}