summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2024-05-24 23:26:39 -0400
committerAAGaming <aagaming@riseup.net>2024-05-24 23:26:39 -0400
commit96cc72f2ca25ccb312b68a29aca755bb7df660ed (patch)
treeda670c5d97e43db338df9d736f644ae1c7cb5a54
parent372771a228c9fbb31ec4a943dd6cfa9915741c6c (diff)
downloaddecky-loader-96cc72f2ca25ccb312b68a29aca755bb7df660ed.tar.gz
decky-loader-96cc72f2ca25ccb312b68a29aca755bb7df660ed.zip
chore: fetch -> fetchNoCors
-rw-r--r--frontend/src/plugin-loader.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx
index 1ddc0fa2..df3a9609 100644
--- a/frontend/src/plugin-loader.tsx
+++ b/frontend/src/plugin-loader.tsx
@@ -494,7 +494,7 @@ class PluginLoader extends Logger {
}
// Same syntax as fetch but only supports the url-based syntax and an object for headers since it's the most common usage pattern
- fetch(input: string, init?: DeckyRequestInit | undefined): Promise<Response> {
+ fetchNoCors(input: string, init?: DeckyRequestInit | undefined): Promise<Response> {
const headers: { [name: string]: string } = {
...(init?.headers as { [name: string]: string }),
'X-Decky-Auth': deckyAuthToken,
@@ -571,7 +571,7 @@ class PluginLoader extends Logger {
[tab: String, runAsync: Boolean, code: string],
{ success: boolean; result: any }
>('utilities/execute_in_tab'),
- fetch: this.fetch.bind(this),
+ fetchNoCors: this.fetchNoCors.bind(this),
getExternalResourceURL: this.getExternalResourceURL.bind(this),
injectCssIntoTab: DeckyBackend.callable<[tab: string, style: string], string>(
'utilities/inject_css_into_tab',