We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 326e9e0 commit 9522607Copy full SHA for 9522607
src/reader.js
@@ -1,7 +1,3 @@
1
-const URL = require("url");
2
-
3
-const isClient = typeof window !== "undefined";
4
5
const INDEX_FILENAME = "序";
6
7
function isHostTrusted(url, trustedHosts) {
@@ -50,10 +46,6 @@ function defaultImportReader(
50
46
for (dir of importPaths) {
51
47
let uri = dir;
52
48
53
- if (isClient) {
54
- uri = URL.resolve(window.document.location, uri);
55
- }
56
57
49
if (uri.endsWith("/")) uri = uri.slice(0, -1);
58
59
if (isHttpURL(uri)) {
0 commit comments