Skip to content

Commit 37b0ee0

Browse files
committed
Fix error while adding more than 1 nav/info link
1 parent 3491f0d commit 37b0ee0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

utils/setConfig.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { fileURLToPath } from "url";
55

66
const __dirname = path.dirname(fileURLToPath(import.meta.url));
77
const CONFIG_PATH = path.join(__dirname, "..", "config.json");
8+
let cfg;
89

910
function getSanitizedLink(link) {
1011
if (!/^https?:\/\//i.test(link)) {
@@ -52,7 +53,7 @@ async function inquireLink(type) {
5253
}
5354

5455
export async function setConfig() {
55-
let cfg = {};
56+
cfg = {};
5657

5758
const exists = fs.existsSync(CONFIG_PATH);
5859
if (exists) {

0 commit comments

Comments
 (0)