LordXido commited on
Commit
0a8afdf
·
verified ·
1 Parent(s): c73d07c

Update web.js

Browse files
Files changed (1) hide show
  1. web.js +6 -8
web.js CHANGED
@@ -1,10 +1,8 @@
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
  }
 
1
+ export function loadURL(url){
2
+ if(!url.startsWith("http")) url="https://"+url;
3
+ document.getElementById("browser").src=url;
4
+ }
5
 
6
+ export function scrapeDOM(){
7
+ // future: DOM → world terrain
 
 
 
 
8
  }