BlueGit

timfa bluegit

Files

bluegit / internal / server / static / commit-mode.js

commit-mode.js

feat: toon een commit zoals GitLab
timfa project_87923614_bot_3aff574f6f98414b945a8799374f9092 · pushed by timfa · 3 weeks ago
dc9d9b26 History
commit-mode.js 275 B Download Raw
1(function () {
2 var box = document.getElementById("commitdiff");
3 if (!box) {
4 return;
5 }
6 var mode = "inline";
7 try {
8 if (localStorage.getItem("bluegit-diff") === "side") {
9 mode = "side";
10 }
11 } catch (e) {}
12 box.setAttribute("data-mode", mode);
13})();