Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhibbitts committed Oct 24, 2023
1 parent fd52ddd commit 20df7ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -730,12 +730,12 @@
}

function getAllowedFileExtensions() {
// Return list of supported file extensions
// Return list of supported file extensions and supported slugs (e.g. 'download')
return ".md,download";
}

function isExtensionAllowed(fileURL) {
// Check if filename contains an allowed file extension
// Check if filename contains an allowed file extension or supported slug
var allowedExtensions = getAllowedFileExtensions();
fileURL = fileURL.split('?id')[0];
var extension = fileURL.split(".").pop();
Expand Down

0 comments on commit 20df7ca

Please sign in to comment.