Skip to content

Commit

Permalink
Remove unused script
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Dec 4, 2024
1 parent 1bad338 commit c395950
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions bskyweb/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,6 @@
}
</style>

<script>
try {
var windowWidth = window.innerWidth;
var html = document.documentElement;
var htmlWidth = html.getBoundingClientRect().width;
var scrollbarWidth = (windowWidth - htmlWidth) / 2;
var scrollbarOffset = scrollbarWidth / 2;
var isFF = /firefox/i.test(navigator.userAgent)
if (!isFF) {
html.style.setProperty('--scrollbar-offset', `${scrollbarOffset}px`);
html.style.setProperty('--scrollbar-offset-negative', `-${scrollbarOffset}px`);
}
} catch (error) {}
</script>

{% include "scripts.html" %}
<link rel="apple-touch-icon" sizes="180x180" href="{{ staticCDNHost }}/static/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{ staticCDNHost }}/static/favicon-32x32.png">
Expand Down

0 comments on commit c395950

Please sign in to comment.