diff --git a/package-lock.json b/package-lock.json
index 7bffc66..e71ba1f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -12,8 +12,8 @@
"@ptkdev/logger": "^1.8.0",
"eruda": "^3.0.1",
"filer": "^1.4.1",
- "prism-code-editor": "^2.2.1",
"material-symbols": "^0.14.1",
+ "prism-code-editor": "^2.2.1",
"uuid": "^9.0.1"
},
"devDependencies": {
diff --git a/public/uv/uv.bundle.js b/public/uv/uv.bundle.js
index 4a43fdc..f440917 100644
--- a/public/uv/uv.bundle.js
+++ b/public/uv/uv.bundle.js
@@ -17962,6 +17962,8 @@
function deepAssign(dest, src) {
for (const key in src) {
+ if (!src.hasOwnProperty(key)) continue;
+ if (key === "__proto__" || key === "constructor") continue;
if (hasOwnProperty.call(src, key)) {
if (isObject(dest[key])) {
deepAssign(dest[key], copy(src[key]));
@@ -39189,7 +39191,7 @@
str = new String(str).trim();
if (!str || this.urlRegex.test(str)) return str;
- if (str.startsWith('javascript:')) {
+ if (str.startsWith('javascript:') || str.startsWith("data:") || str.startsWith("vbscript:")) {
return 'javascript:' + this.js.rewrite(str.slice('javascript:'.length));
};
diff --git a/src/structures/FlowWindow.ts b/src/structures/FlowWindow.ts
index 4d29a9d..ef4f361 100644
--- a/src/structures/FlowWindow.ts
+++ b/src/structures/FlowWindow.ts
@@ -1,6 +1,7 @@
import { v4 as uuid } from 'uuid'
import WindowManager from '../instances/WindowManager'
import { FlowWindowConfig } from '../types'
+import { sanitize } from '../utils';
/**
* Makes an element draggable.
@@ -108,9 +109,9 @@ class FlowWindow {
this.element.style.height = `${config.height ?? 200}px`
this.header = document.createElement('window-header')
- this.header.innerHTML = `