Skip to content

Commit

Permalink
Added LibreJS license to theme switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenengler committed Apr 14, 2024
1 parent fa68a9e commit 346b761
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions static/js/theme-switcher.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// license information for librejs extension users
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt "Expat License (sometimes called MIT Licensed)"

// in Firefox we need to add a new css style with document.write rather than modifying the href
// of the existing one, otherwise the screen will flash white while loading on dark themes
var theme_css_elem = document.getElementById('theme_css');
Expand Down Expand Up @@ -38,3 +41,5 @@ function toggle_theme(){
}
update_toggle_button();
}

// @license-end

0 comments on commit 346b761

Please sign in to comment.