mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 04:06:44 +02:00
Skip empty lines and comments in link-config file (#32589)
This commit is contained in:
parent
29edb9ca29
commit
c2ed88fbf0
@ -27,6 +27,7 @@ try {
|
||||
|
||||
const configFile = await fs.readFile(configPath, "utf-8");
|
||||
for (const line of configFile.trim().split("\n")) {
|
||||
if (!line || line.startsWith("#")) continue;
|
||||
const [dependency, path] = line.split("=");
|
||||
const dependencyPath = join(nodeModulesPath, dependency);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user