mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 16:23:12 +09:00
Fix lint error
This commit is contained in:
1 file changed
+1
-1
@@ -1134,7 +1134,7 @@ export default class Controller {
|
|||||||
try {
|
try {
|
||||||
const manifestPath = path.posix.join(pluginInfo.requirePath, "dist", "web", "manifest.json");
|
const manifestPath = path.posix.join(pluginInfo.requirePath, "dist", "web", "manifest.json");
|
||||||
const resolvedUrl = import.meta.resolve(manifestPath);
|
const resolvedUrl = import.meta.resolve(manifestPath);
|
||||||
const resolvedPath = resolvedUrl.startsWith('file://') ? fileURLToPath(resolvedUrl) : resolvedUrl;
|
const resolvedPath = resolvedUrl.startsWith("file://") ? fileURLToPath(resolvedUrl) : resolvedUrl;
|
||||||
pluginInfo.manifest = await Controller.loadJsonObject(resolvedPath, true);
|
pluginInfo.manifest = await Controller.loadJsonObject(resolvedPath, true);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (lib.pluginNeedsWebBuild(pluginInfo)) {
|
if (lib.pluginNeedsWebBuild(pluginInfo)) {
|
||||||
|
|||||||
Reference in new issue
Block a user