Merge pull request #205 from oldbig/bugfix/compile_error_by_js_arrow_function

Fix compile error caused by js arrow function
This commit is contained in:
Simon Redfern 2022-12-07 11:08:31 +01:00 committed by GitHub
commit 1158a8a6cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -294,7 +294,9 @@ function copyJsonResultToClipboard(element) {
// It delays the call by ms milliseconds
function defer(f, ms) {
return function() {
setTimeout(() => f.apply(this, arguments), ms);
setTimeout(function() {
f.apply(this, arguments);
}, ms);
};
}