1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2025-01-08 17:38:44 +00:00
code-server-2/src/browser/pages/app.ts
2020-02-14 15:58:39 -06:00

16 lines
398 B
TypeScript

import { getOptions } from "../../common/util"
import "./app.css"
import "./error.css"
import "./global.css"
import "./home.css"
import "./login.css"
import "./update.css"
const options = getOptions()
const parts = window.location.pathname.replace(/^\//g, "").split("/")
parts[parts.length - 1] = options.base
const url = new URL(window.location.origin + "/" + parts.join("/"))
console.log(url)