mirror of
https://github.com/LukeHagar/sveltesociety.dev.git
synced 2025-12-07 12:47:45 +00:00
adds static adapter, removes some links to non-existing files
This commit is contained in:
13
.svelte/dev/runtime/chunks/utils.js
Normal file
13
.svelte/dev/runtime/chunks/utils.js
Normal file
@@ -0,0 +1,13 @@
|
||||
/** @param {HTMLDocument} doc */
|
||||
function get_base_uri(doc) {
|
||||
let baseURI = doc.baseURI;
|
||||
|
||||
if (!baseURI) {
|
||||
const baseTags = doc.getElementsByTagName('base');
|
||||
baseURI = baseTags.length ? baseTags[0].href : doc.URL;
|
||||
}
|
||||
|
||||
return baseURI;
|
||||
}
|
||||
|
||||
export { get_base_uri as g };
|
||||
Reference in New Issue
Block a user