Update index.js

This commit is contained in:
Foxster
2023-12-15 20:07:05 -08:00
parent 66cc43d4d4
commit 95de2e9c1f

View File

@@ -22,8 +22,8 @@ import { sources } from "./common/modules/constants.js";
const sourceURL = textField.value; const sourceURL = textField.value;
if (!isValidHTTPURL(sourceURL)) if (!isValidHTTPURL(sourceURL))
alert("Invalid HTTP URL."); alert("Invalid HTTP URL.");
// else open(`./view/?source=${sourceURL}`); else open(`./view/?source=${sourceURL}`);
else insertSource(sourceURL, "afterbegin", true); // else insertSource(sourceURL, "afterbegin", true);
}; };
// If source provided // If source provided