File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,14 @@ document.querySelectorAll("input[name=theme]").forEach(input => {
1717 if ( input . value === currentTheme ) {
1818 input . checked = true ;
1919 themeLink . href =
20- "https://dev.prismjs.com/" + themes . meta . path . replace ( / \{ i d \} / g, input . value ) ;
20+ // FIXME: Remove “v2” when Prism v2 is released
21+ "https://v2.dev.prismjs.com/dist/" + themes . meta . path . replace ( / \{ i d \} / g, input . value ) ;
2122 }
2223
2324 input . addEventListener ( "change" , ( ) => {
2425 let id = input . value ;
25- themeLink . href = "https://dev.prismjs.com/" + themes . meta . path . replace ( / \{ i d \} / g, id ) ;
26+ // FIXME: Remove “v2” when Prism v2 is released
27+ themeLink . href = "https://v2.dev.prismjs.com/dist/" + themes . meta . path . replace ( / \{ i d \} / g, id ) ;
2628 localStorage . setItem ( "theme" , id ) ;
2729 } ) ;
2830} ) ;
You can’t perform that action at this time.
0 commit comments