Skip to content

Commit

Permalink
Fix error while adding more than 1 nav/info link
Browse files Browse the repository at this point in the history
  • Loading branch information
shaansubbaiah committed Dec 23, 2022
1 parent 3491f0d commit 37b0ee0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/setConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { fileURLToPath } from "url";

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

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

export async function setConfig() {
let cfg = {};
cfg = {};

const exists = fs.existsSync(CONFIG_PATH);
if (exists) {
Expand Down

0 comments on commit 37b0ee0

Please sign in to comment.