File tree 3 files changed +17
-3
lines changed
3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 23
23
✔ scroll bar idle colour is hard to see @done(21-07-12 21:36)
24
24
25
25
Closed release:
26
- ☐ Elements are not loaded in the correct order. (Partially complete).
27
26
28
27
Public release:
28
+ ☐ Replace browser location when redirected to http (possibly fixed).
29
+ ☐ Tell the browser to cache the elements for faster loading.
29
30
☐ Change some variables from being stored as a cookie to local storage.
30
31
☐ Create the settings menu instead of passing options in through the URL.
31
32
☐ Odd issue with scaled UIs on firefox when dragging elements around.
@@ -104,6 +105,7 @@ Done:
104
105
✔ sort out the protocol to load (http/https) when an external IP is specified. @done(21-07-22 21:28)
105
106
✔ Remove the noscript tag from the page. @done(21-07-23 00:37)
106
107
✔ I may need to defer the scripts to make sure that they are loaded after the page is loaded. @done(21-07-23 01:01)
108
+ ✔ Elements are not loaded in the correct order. (Partially complete). @done(21-07-23 16:29)
107
109
108
110
Cancelled:
109
111
✘ fix @use on element stylesheets. @cancelled(21-05-15 21:23) replaced with variables set in ui.ts.
Original file line number Diff line number Diff line change @@ -393,7 +393,13 @@ class Editor
393
393
if ( ip == null || ip == undefined || ! RegExp ( Client . ipRegex ) . test ( ip ) ) { ip = "127.0.0.1" ; }
394
394
this . optionsMenu . data . gameIP . value = ip ;
395
395
Main . SetCache ( "GAME_IP" , ip , 365 ) ;
396
- if ( ip !== "127.0.0.1" && window . location . protocol !== "http:" ) { window . location . href = `http://${ window . location . hostname } ${ window . location . pathname } ${ window . location . search } ` ; }
396
+ if ( ip !== "127.0.0.1" && window . location . protocol !== "http:" )
397
+ {
398
+ history . replaceState ( null , "" , `http://${ window . location . hostname } ${ window . location . pathname } ${ window . location . search } ` ) ;
399
+ window . location . href = `http://${ window . location . hostname } ${ window . location . pathname } ${ window . location . search } ` ;
400
+ // history.replaceState(null, "",
401
+ // window.location.href.replace(`http://${window.location.hostname}${window.location.pathname}${window.location.search}`, ""));
402
+ }
397
403
this . client = new Client ( ip ) ;
398
404
this . client . AddEndpoint ( "MapData" ) ;
399
405
this . client . AddEndpoint ( "LiveData" ) ;
Original file line number Diff line number Diff line change @@ -111,7 +111,13 @@ class View
111
111
if ( ip == null || ip == undefined || ! RegExp ( Client . ipRegex ) . test ( ip ) ) { ip = "127.0.0.1" ; }
112
112
this . optionsContainer . options . ip . value = ip ;
113
113
Main . SetCache ( "GAME_IP" , ip , 365 ) ;
114
- if ( ip !== "127.0.0.1" && window . location . protocol !== "http:" ) { window . location . href = `http://${ window . location . hostname } ${ window . location . pathname } ${ window . location . search } ` ; }
114
+ if ( ip !== "127.0.0.1" && window . location . protocol !== "http:" )
115
+ {
116
+ history . replaceState ( null , "" , `http://${ window . location . hostname } ${ window . location . pathname } ${ window . location . search } ` ) ;
117
+ window . location . href = `http://${ window . location . hostname } ${ window . location . pathname } ${ window . location . search } ` ;
118
+ // history.replaceState(null, "",
119
+ // window.location.href.replace(`http://${window.location.hostname}${window.location.pathname}${window.location.search}`, ""));
120
+ }
115
121
this . client = new Client ( ip ) ;
116
122
this . client . AddEndpoint ( "MapData" ) ;
117
123
this . client . AddEndpoint ( "LiveData" ) ;
You can’t perform that action at this time.
0 commit comments