Skip to content

Commit 6b269c0

Browse files
authored
Merge pull request #93 from codeitcodes/main
A
2 parents 233601e + fcb8c16 commit 6b269c0

File tree

3 files changed

+18
-25
lines changed

3 files changed

+18
-25
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

filebrowser.js

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -144,22 +144,26 @@ async function renderSidebarHTML() {
144144
let modFilesChanged = false;
145145

146146
Object.values(modifiedFiles).forEach(modFile => {
147-
148-
// map modified file location
149-
let [fileUser, fileRepo, fileDir] = modFile.dir.split(',');
150147

151-
// if modified file dosen't have a branch
152-
// and is in current repo
153-
if (!fileRepo.includes(':')
154-
&& fileUser === user
155-
&& fileRepo === repoName) {
156-
157-
// append default branch to file
158-
fileRepo = fileRepo + ':' + branch;
159-
modFile.dir = [fileUser, fileRepo, fileDir].join();
148+
if (modFile.dir) {
160149

161-
modFilesChanged = true;
150+
// map modified file location
151+
let [fileUser, fileRepo, fileDir] = modFile.dir.split(',');
152+
153+
// if modified file dosen't have a branch
154+
// and is in current repo
155+
if (!fileRepo.includes(':')
156+
&& fileUser === user
157+
&& fileRepo === repoName) {
158+
159+
// append default branch to file
160+
fileRepo = fileRepo + ':' + branch;
161+
modFile.dir = [fileUser, fileRepo, fileDir].join();
162162

163+
modFilesChanged = true;
164+
165+
}
166+
163167
}
164168

165169
});

service-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
// update cache names any time any of the cached files change
4-
const CACHE_NAME = 'static-cache-v289';
4+
const CACHE_NAME = 'static-cache-v290';
55

66
// list of files to cache
77
const FILES_TO_CACHE = [

0 commit comments

Comments
 (0)