diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 1d3d075b73..0000000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,11 +0,0 @@ - diff --git a/filebrowser.js b/filebrowser.js index 8b96c2cffa..da8060a200 100644 --- a/filebrowser.js +++ b/filebrowser.js @@ -144,22 +144,26 @@ async function renderSidebarHTML() { let modFilesChanged = false; Object.values(modifiedFiles).forEach(modFile => { - - // map modified file location - let [fileUser, fileRepo, fileDir] = modFile.dir.split(','); - // if modified file dosen't have a branch - // and is in current repo - if (!fileRepo.includes(':') - && fileUser === user - && fileRepo === repoName) { - - // append default branch to file - fileRepo = fileRepo + ':' + branch; - modFile.dir = [fileUser, fileRepo, fileDir].join(); + if (modFile.dir) { - modFilesChanged = true; + // map modified file location + let [fileUser, fileRepo, fileDir] = modFile.dir.split(','); + + // if modified file dosen't have a branch + // and is in current repo + if (!fileRepo.includes(':') + && fileUser === user + && fileRepo === repoName) { + + // append default branch to file + fileRepo = fileRepo + ':' + branch; + modFile.dir = [fileUser, fileRepo, fileDir].join(); + modFilesChanged = true; + + } + } }); diff --git a/service-worker.js b/service-worker.js index d4f90e69e9..77cf347b85 100644 --- a/service-worker.js +++ b/service-worker.js @@ -1,7 +1,7 @@ 'use strict'; // update cache names any time any of the cached files change -const CACHE_NAME = 'static-cache-v289'; +const CACHE_NAME = 'static-cache-v290'; // list of files to cache const FILES_TO_CACHE = [