Skip to content

Commit

Permalink
removed mime type because with chrome 116+ the prefers-color-scheme t…
Browse files Browse the repository at this point in the history
…ag doesn't work if there is the css type
  • Loading branch information
simonebortolin committed Sep 6, 2023
1 parent 4c37a58 commit bbb8eb0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
function createThemeStylesheet(theme, media) {
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = "{{ '/assets/css/just-the-docs-*.css' | relative_url }}".replace("*",theme);
if(media) link.media = media;
return link;
Expand Down
1 change: 0 additions & 1 deletion assets/js/just-the-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,6 @@ jtd.setTheme = function(theme) {
function createThemeStylesheet(theme, media) {
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = "{{ '/assets/css/just-the-docs-*.css' | relative_url }}".replace("*",theme);
if(media) link.media = media;
return link;
Expand Down

0 comments on commit bbb8eb0

Please sign in to comment.