Automatically append [Dev] to title on dev site
This commit is contained in:
parent
f7f8eb93b9
commit
b92e89a7c4
@ -48,6 +48,11 @@ export class Sim {
|
||||
const div = document.getElementById(this.divId);
|
||||
this.div = div;
|
||||
|
||||
const url = new URL(window.location.href);
|
||||
if (url.host === 'gravity.dev.laddhoffman.com') {
|
||||
document.title += ' [Dev]';
|
||||
}
|
||||
|
||||
this.options = new Options(this, simOptions);
|
||||
this.display = new Display(this);
|
||||
this.system = new System(this);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user