Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit eb56bb4

Browse files
committed
fix(methods): removed argument due to console removed
1 parent 1c90298 commit eb56bb4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/core/method/create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function create<T extends CSSXStyleDefinition>(object: CSSXTypedStyle<T>
1414
Object.defineProperty(object, key, {
1515
get: () => {
1616
const className = key + '_' + base36Hash;
17-
if (isDevAndTest) injectCSS(base36Hash, styleSheet, 'create');
17+
if (isDevAndTest) injectCSS(base36Hash, styleSheet);
1818
return isDevAndTest ? className : styles[className];
1919
},
2020
});

src/core/method/global.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ export function global(object: CustomHTMLType): void {
99
if (typeof globalStyleSheetPromise === 'undefined') createGlobalStyleSheetPromise();
1010
resolveGlobalStyleSheet([styleSheet, '--global']);
1111

12-
if (isDevAndTest) isServer ? injectServerCSS(base36Hash, styleSheet, 'global') : injectClientGlobalCSS(styleSheet, 'global');
12+
if (isDevAndTest) isServer ? injectServerCSS(base36Hash, styleSheet) : injectClientGlobalCSS(styleSheet, 'global');
1313
}

src/core/method/root.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ export function root(object: ExtendedCSSProperties): void {
99
if (typeof globalStyleSheetPromise === 'undefined') createGlobalStyleSheetPromise();
1010
resolveGlobalStyleSheet([styleSheet, '--global']); // global.css
1111

12-
if (isDevAndTest) isServer ? injectServerCSS(base36Hash, styleSheet, 'root') : injectClientGlobalCSS(styleSheet, 'root');
12+
if (isDevAndTest) isServer ? injectServerCSS(base36Hash, styleSheet) : injectClientGlobalCSS(styleSheet, 'root');
1313
}

src/core/method/set.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ export function set(object: ExtendedCSSProperties): string {
1010
resolveGlobalStyleSheet(styleSheet);
1111

1212
const injectCSS = isServer ? injectServerCSS : injectClientCSS;
13-
if (isDevAndTest) injectCSS(base36Hash, styleSheet, 'set');
13+
if (isDevAndTest) injectCSS(base36Hash, styleSheet);
1414
return isDevAndTest ? base36Hash : styles[base36Hash];
1515
}

0 commit comments

Comments
 (0)