瀏覽代碼

ref: nothing important

Sv443 6 月之前
父節點
當前提交
101974dd57
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/interface.ts

+ 2 - 2
src/interface.ts

@@ -188,8 +188,8 @@ export function initInterface() {
 
 /** Sets a global property on the unsafeWindow.BYTM object - ⚠️ use with caution as these props can be accessed by any script on the page! */
 export function setGlobalProp<
-  TKey extends keyof Window["BYTM"],
-  TValue = Window["BYTM"][TKey],
+  TKey extends keyof BytmObject,
+  TValue = BytmObject[TKey],
 >(
   key: TKey | (string & {}),
   value: TValue,