| 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 | })(); |