From 95de2e9c1f9cff71b7ce9cf672470814a7bc94b0 Mon Sep 17 00:00:00 2001 From: Foxster Date: Fri, 15 Dec 2023 20:07:05 -0800 Subject: [PATCH] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 3963a50..f12febd 100644 --- a/index.js +++ b/index.js @@ -22,8 +22,8 @@ import { sources } from "./common/modules/constants.js"; const sourceURL = textField.value; if (!isValidHTTPURL(sourceURL)) alert("Invalid HTTP URL."); - // else open(`./view/?source=${sourceURL}`); - else insertSource(sourceURL, "afterbegin", true); + else open(`./view/?source=${sourceURL}`); + // else insertSource(sourceURL, "afterbegin", true); }; // If source provided