Skip to content

Commit

Permalink
fix(window): Fixed ReferenceError: window is not defined error
Browse files Browse the repository at this point in the history
This commit aims to increase compatibility with NodeJS environment by removing the dependency with the window object (which is not defined in a node environment)
  • Loading branch information
LukeSavefrogs committed Feb 15, 2022
1 parent 20cd454 commit 9cb004f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SeleniumEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const SeleniumEngine = {
let start_ts = new Date().getTime();

return new Promise((resolve, reject) => {
let timer = window.setInterval(() => {
let timer = setInterval(() => {
let elapsed_time = parseInt(new Date().getTime() - start_ts);

// Se il timeout è un numero
Expand Down

0 comments on commit 9cb004f

Please sign in to comment.