Only set timeout to 50 if undefined
This commit is contained in:
parent
502f814fc4
commit
0e79cf247c
|
@ -1454,7 +1454,7 @@ const ZOTERO_CONFIG = {
|
|||
* @param {Integer} [timeout=50] Maximum number of milliseconds to wait
|
||||
*/
|
||||
this.wait = function (timeout) {
|
||||
if (!timeout) {
|
||||
if (timeout === undefined) {
|
||||
timeout = 50;
|
||||
}
|
||||
var mainThread = Zotero.mainThread;
|
||||
|
|
Loading…
Reference in New Issue
Block a user