fix for normal webui
parent
c66dfa2330
commit
f1c934b765
|
|
@ -31,7 +31,13 @@ export function ch_sd_version() {
|
|||
}
|
||||
|
||||
function extract_version(text) {
|
||||
const matches = text.match(/v[0-9]\.[0-9]\.[0-9]/);
|
||||
let matches;
|
||||
// for forge
|
||||
if (text[0] == 'f')
|
||||
matches = text.match(/v[0-9]\.[0-9]\.[0-9]/);
|
||||
else
|
||||
matches = text.match(/[0-9]\.[0-9]\.[0-9]/);
|
||||
|
||||
if (matches === null || matches.length == 0) {
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue