mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-24 23:04:32 -04:00
Refactored project structure
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
import { getElementOrThrow, getLocation } from "~/browser"
|
||||
import { getElement, getLocation } from "~/browser"
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
* Types
|
||||
@@ -99,7 +99,7 @@ export interface Config {
|
||||
/**
|
||||
* Retrieve global configuration and make base URL absolute
|
||||
*/
|
||||
const script = getElementOrThrow("#__config")
|
||||
const script = getElement("#__config")
|
||||
const config: Config = JSON.parse(script.textContent!)
|
||||
config.base = `${new URL(config.base, getLocation())}`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user