1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2025-01-09 09:48:45 +00:00
code-server-2/src/browser/pages/app.ts

16 lines
398 B
TypeScript
Raw Normal View History

import { getOptions } from "../../common/util"
import "./app.css"
import "./error.css"
import "./global.css"
import "./home.css"
import "./login.css"
2020-02-14 21:57:51 +00:00
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)