mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-08-18 00:29:58 +02:00
Check whether the browser supports performance.measure/mark before calling them. Fixes https://github.com/cmdr2/stable-diffusion-ui/pull/757
This commit is contained in:
@@ -440,7 +440,10 @@ function getUncompletedTaskEntries() {
|
||||
}
|
||||
|
||||
function makeImage() {
|
||||
performance.mark('click-makeImage')
|
||||
if (typeof performance == "object" && performance.mark) {
|
||||
performance.mark('click-makeImage')
|
||||
}
|
||||
|
||||
if (!SD.isServerAvailable()) {
|
||||
alert('The server is not available.')
|
||||
return
|
||||
|
Reference in New Issue
Block a user