Make all resource paths relative

Closes: https://todo.sr.ht/~emersion/gamja/17
This commit is contained in:
Simon Ser
2021-03-02 22:46:48 +01:00
parent a5608a40d5
commit 80e0175d36
14 changed files with 47 additions and 43 deletions

View File

@@ -1,8 +1,8 @@
export * from "/node_modules/preact/dist/preact.module.js";
export * from "../node_modules/preact/dist/preact.module.js";
import { h } from "/node_modules/preact/dist/preact.module.js";
import htm from "/node_modules/htm/dist/htm.module.js";
import { h } from "../node_modules/preact/dist/preact.module.js";
import htm from "../node_modules/htm/dist/htm.module.js";
export const html = htm.bind(h);
import "/node_modules/anchorme/dist/browser/anchorme.min.js";
import "../node_modules/anchorme/dist/browser/anchorme.min.js";
export const anchorme = window.anchorme;

View File

@@ -1,4 +1,4 @@
import { anchorme, html } from "/lib/index.js";
import { anchorme, html } from "./index.js";
export default function linkify(text) {
var links = anchorme.list(text);