variant: fix auto mode variant download in stylesheet generator #679

This commit is contained in:
Sören Weber 2023-11-24 23:35:15 +01:00
parent 7081028ec3
commit f6288edcf4
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -361,7 +361,7 @@ var variants = {
}
if( !read_style ){
if( with_prompt ){
alert( 'A auto mode variant can not be changed. Please select its light/dark variant directly to make changes' );
alert( 'An auto mode variant can not be changed. Please select its light/dark variant directly to make changes' );
}
return;
}
@ -426,6 +426,10 @@ var variants = {
if( !read_style ){
read_style = write_style;
}
if( !read_style ){
alert( 'An auto mode variant will be generated by Hugo and must not be stored in a separate stylesheet' );
return;
}
var style =
'/* ' + this.customvariantname + ' */\n' +