Skip to content

Commit b1b93c8

Browse files
Nemo157GuillaumeGomez
authored andcommitted
Fix indentation
1 parent 198fdee commit b1b93c8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

templates/theme.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
function applyTheme(theme) {
2-
document.documentElement.dataset.theme = theme;
2+
document.documentElement.dataset.theme = theme;
33
}
44

55
window.addEventListener('storage', function (ev) {
6-
if (ev.key === 'rustdoc-theme') {
7-
applyTheme(ev.newValue);
8-
}
6+
if (ev.key === 'rustdoc-theme') {
7+
applyTheme(ev.newValue);
8+
}
99
});
1010

1111
// see ./storage-change-detection.html for details
1212
window.addEventListener('message', function (ev) {
13-
if (ev.data && ev.data.storage && ev.data.storage.key === 'rustdoc-theme') {
14-
applyTheme(ev.data.storage.value);
15-
}
13+
if (ev.data && ev.data.storage && ev.data.storage.key === 'rustdoc-theme') {
14+
applyTheme(ev.data.storage.value);
15+
}
1616
});
1717

1818
applyTheme(window.localStorage.getItem('rustdoc-theme'));

0 commit comments

Comments
 (0)