add option for specific OS's in scripts.

change view in script editor to match the block view (looks much nicer and much more organized).
This commit is contained in:
KingKDot
2026-03-17 13:27:44 -05:00
parent 0564bbd1ea
commit 7ee22bb004
6 changed files with 217 additions and 279 deletions
@@ -28,6 +28,13 @@ export function dispatchAutoScriptsForConnection(
}
for (const script of scripts) {
if (script.osFilter.length > 0) {
const clientOs = (info.os || "").toLowerCase();
if (!script.osFilter.includes(clientOs)) {
continue;
}
}
if (script.trigger === "on_connect_once") {
if (hasAutoScriptRun(script.id, info.id)) {
continue;