Also add Utils script

This commit is contained in:
Sebastian Lohff 2025-04-13 18:34:24 +02:00
parent 0e6ab98c6f
commit f3732b09d5
2 changed files with 8 additions and 0 deletions

7
autoloads/utils.gd Normal file
View File

@ -0,0 +1,7 @@
extends Node
func get_external_freq_param():
match OS.get_name():
"web":
return JavaScriptBridge.eval("new URL(window.location.href).searchParams.get('freq')")
return null

1
autoloads/utils.gd.uid Normal file
View File

@ -0,0 +1 @@
uid://ua7dk3y0v21e