We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bc3d9c commit 6decf56Copy full SHA for 6decf56
changelog.md
@@ -1,5 +1,8 @@
1
# UnderScript Changelog
2
3
+## Version 0.63.6 (2025-08-15)
4
+1. Minor bug fixes
5
+
6
## Version 0.63.5 (2025-08-01)
7
1. Added `underscript.item`
8
1. Added `underscript.priority`
src/utils/global.js
@@ -16,9 +16,10 @@ export function global(...key) {
16
}
17
18
export function globalSet(key, value, {
19
+ force = false,
20
throws = true,
21
} = {}) {
- if (!hasOwn(window, key)) {
22
+ if (!force && !hasOwn(window, key)) {
23
const msg = `[${key}] does not exist`;
24
if (throws) throw new Error(msg);
25
return debug(msg);
0 commit comments