From b07626581d4e5543c4895c0ac4feb49b7f34d96d Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Mon, 21 Nov 2022 19:22:42 -0500 Subject: [PATCH] fix(plugins/community/splatoon): script link --- source/plugins/community/splatoon/token.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/plugins/community/splatoon/token.ts b/source/plugins/community/splatoon/token.ts index 22d74cb2..a0ae116c 100644 --- a/source/plugins/community/splatoon/token.ts +++ b/source/plugins/community/splatoon/token.ts @@ -21,9 +21,9 @@ const allowed = { files:["profile.json", "profile.json.swap", "cache", "export"], net:["api.imink.app", "accounts.nintendo.com", "api.accounts.nintendo.com", "api-lp1.znc.srv.nintendo.net", "api.lp1.av5ja.srv.nintendo.net"] } -const script = "https://raw.githubusercontent.com/lowlighter/metrics/master/source/plugins/community/splatoon/s3si/index.ts" +const script = import.meta.resolve("./s3si/index.ts") const args = [ - "run", "--no-prompt", "--cached-only", "--no-remote", + "run", "--no-prompt", "--cached-only", `--allow-read="${allowed.files}"`, `--allow-write="${allowed.files}"`, `--allow-net="${allowed.net}"`,