support more extensions
This commit is contained in:
parent
1a9851f68b
commit
1e998e5d20
10 changed files with 39 additions and 8 deletions
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
console.log("butter-dir-listing.js loaded!");
|
||||
|
||||
const supported_extensions = ["apk", "deb", "img", "pdf"];
|
||||
const supported_extensions = ["apk", "deb", "dmg", "pdf", "exe", "jpg", "png", "pptx", "ppt", "mp3"];
|
||||
const usbRoot = "usb-butter/";
|
||||
const inferredBaseURL = window.location.pathname.split("/" + usbRoot)[0] + "/";
|
||||
console.log("Inferred Base URL:", inferredBaseURL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue