fix typos in baseurl

This commit is contained in:
John Hess 2024-06-05 14:35:54 -05:00
parent e0563c3c3e
commit d56a303896

View file

@ -9,8 +9,8 @@
console.log("butter-dir-listing.js loaded!");
const supported_extensions = [".apk"];
const usbRoot = "/usb-butter/";
const inferredBaseURL = window.location.pathname.split("/usb-butter/")[0] + "/";
const usbRoot = "usb-butter/";
const inferredBaseURL = window.location.pathname.split("/" + usbRoot)[0] + "/";
console.log("Inferred Base URL:", inferredBaseURL);
const getFolderDivHTML = (directory_name, number_of_items, href) => {