Skip to content

Commit ff65ac5

Browse files
committed
Try to fallback to fullpath for non-ASCII
1 parent f7ef2dc commit ff65ac5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ function getPluginEntry(pluginDir, pluginName = "mpvjs.node") {
4141
}
4242
}
4343
if (containsNonASCII(pluginPath)) {
44-
throw new Error("Non-ASCII plugin path is not supported");
44+
if (containsNonASCII(fullPluginPath)) {
45+
throw new Error("Non-ASCII plugin path is not supported");
46+
} else {
47+
pluginPath = fullPluginPath;
48+
}
4549
}
4650
return `${pluginPath};${MPVJS_MIME_TYPE}`;
4751
}

0 commit comments

Comments
 (0)