wkitd/src/init.js

19 lines
324 B
JavaScript
Raw Normal View History

2023-08-10 19:59:02 +08:00
/**
* {}
* @author yutent<yutent.io@gmail.com>
* @date 2023/08/10 10:19:12
*/
2023-08-14 22:20:16 +08:00
const __WKITD__ = new Map()
2023-08-10 19:59:02 +08:00
2023-08-14 22:20:16 +08:00
Object.defineProperty(window, '__wkitd__', {
get() {
return __WKITD__
},
set(val) {
console.error('Can not set readonly property __wkitd__ of window')
},
writable: false,
enumerable: false
})