We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a479a57 commit 2bf625cCopy full SHA for 2bf625c
live-view/live-view.js
@@ -4,7 +4,23 @@ async function setupLiveView() {
4
5
// if URL has a directory
6
if (linkData.dir) {
7
-
+
8
+ // update repo obj selected branch
9
10
+ const selBranch = linkData.dir[1].split(':')[1];
11
12
+ // get repo obj from local storage
13
+ const repoObj = modifiedRepos[treeLoc[0] + '/' + treeLoc[1].split(':')[0]];
14
15
+ // if repo obj exists
16
+ if (repoObj && repoObj.selBranch !== selBranch) {
17
18
+ // update selected branch in local storage
19
+ updateModRepoSelectedBranch((treeLoc[0] + '/' + treeLoc[1].split(':')[0]), selBranch);
20
21
+ }
22
23
24
// don't transition
25
body.classList.add('notransition');
26
0 commit comments