If you have multiple browser threads then you can add a date column in database for each account. When some action is finished then you can add 30 minutes to the date now and add it to the database of that particular account. Then add a check condition in the beginning of the thread which checks if the current date is less or greater than the database date. If it is greater that means there is still time left and then close that thread without opening browser.
Cannot run javascript from string
-
I have set script to a variable:
[[SCRIPT]] is set to document.getElementById("donuts").text = "test"but when I use javascript action and set content to [[SCRIPT]] it does not run that script.
But if i type "document.getElementById("donuts").text = "test"" directly it will work.
Is this a bug
-
@tipston244 said in Cannot run javascript from string:
I have set script to a variable:
[[SCRIPT]] is set to document.getElementById("donuts").text = "test"but when I use javascript action and set content to [[SCRIPT]] it does not run that script.
But if i type "document.getElementById("donuts").text = "test"" directly it will work.
Is this a bug
You put the text in a variable and just output it

To execute the code represented by a string, use the eval() method
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval