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 1dc3f6b commit a1b3d5cCopy full SHA for a1b3d5c
_includes/footer_custom.html
@@ -1,8 +1,8 @@
1
<script>
2
-(function(){
+window.addEventListener('load', function(){
3
const button = document.getElementById('edit-this-page');
4
const oldUrl = button.href;
5
const newUrl = oldUrl.replace('/main-repo/', '/');
6
button.href = newUrl;
7
-})();
+});
8
</script>
_includes/header_custom.html
@@ -27,7 +27,7 @@
27
<a class="site-button" id="theme-toggle" style="cursor: pointer;"></a>
28
29
30
31
const light = 'light';
32
const dark = 'dark';
33
const system = 'system';
@@ -89,5 +89,5 @@
89
90
button.addEventListener('click', toggleTheme);
91
setTheme(loadedTheme);
92
93
0 commit comments