no need to use basepath in <link>

This commit is contained in:
Rich Harris
2018-10-05 21:16:27 -04:00
parent 7eb1ec727c
commit 00321932ef

View File

@@ -342,7 +342,7 @@ export function prepare_page(target: Target): Promise<{
}
function load_css(chunk: string) {
const href = `${initial_data.baseUrl}client/${chunk}`;
const href = `client/${chunk}`;
if (document.querySelector(`link[href="${href}"]`)) return;
return new Promise((fulfil, reject) => {