LordXido commited on
Commit
406aea5
·
verified ·
1 Parent(s): 0d0691e

Create web.js

Browse files
Files changed (1) hide show
  1. web.js +10 -0
web.js ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ export function loadURL(url) {
2
+ const iframe = document.getElementById("browser");
3
+
4
+ // Basic safety normalization
5
+ if (!url.startsWith("http")) {
6
+ url = "https://" + url;
7
+ }
8
+
9
+ iframe.src = url;
10
+ }