release: WRNexusJS 0.2.33

This commit is contained in:
2026-07-14 23:13:46 +05:30
parent 959ed24009
commit 936488ac06
56 changed files with 174 additions and 96 deletions
+14 -1
View File
@@ -43,6 +43,17 @@ export const REACTIVE_RUNTIME = String.raw`
});
}
function decodeBehaviorPayload(value) {
var binary = window.atob(value);
var bytes = new Uint8Array(binary.length);
for (var index = 0; index < binary.length; index++) {
bytes[index] = binary.charCodeAt(index);
}
return new TextDecoder("utf-8").decode(bytes);
}
function parseBehavior(element) {
var raw = element.getAttribute(
"data-wrn-behavior",
@@ -53,7 +64,9 @@ export const REACTIVE_RUNTIME = String.raw`
}
try {
var decoded = decodeURIComponent(raw);
var decoded =
decodeBehaviorPayload(raw);
var parsed = JSON.parse(decoded);
if (