Automatically append [Dev] to title on dev site

This commit is contained in:
Ladd 2026-01-05 01:51:57 -06:00
parent f7f8eb93b9
commit b92e89a7c4

View File

@ -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);