From 7a6f779b09153e2e1aeb9988b83d0e9550da986b Mon Sep 17 00:00:00 2001 From: Roman Makarewicz <68195466+err09r@users.noreply.github.com> Date: Wed, 15 Jan 2025 21:26:39 +0100 Subject: [PATCH] fix(api): rename 'style' to 'cssId' in removeCssFromTab for clarity 'removeCssFromTab' in Decky Loader API was using 'style' as an argument name, which could lead to confusion. --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 1b3ca46..14430d1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -78,7 +78,7 @@ export const executeInTab: ( ) => Promise<{ success: boolean; result: any }> = api.executeInTab; export const injectCssIntoTab: (tab: string, style: string) => string = api.injectCssIntoTab; -export const removeCssFromTab: (tab: string, style: string) => void = api.removeCssFromTab; +export const removeCssFromTab: (tab: string, cssId: string) => void = api.removeCssFromTab; export const fetchNoCors: (input: string, init?: DeckyRequestInit | undefined) => Promise = api.fetchNoCors; export const getExternalResourceURL: (url: string) => string = api.getExternalResourceURL; @@ -120,4 +120,4 @@ export const definePlugin = (fn: DefinePluginFn): DefinePluginFn => { // TODO: Maybe wrap this return fn(...args); }; -}; \ No newline at end of file +};