I am trying to code a gnome-shell extension. It uses Javascript. But one major problem when I want to use setTimeout()
it tells me this in the log: ReferenceError: setTimeout is not defined
, what I am going to reach here is I want to call a function in non-blocking way using setTimeout()
. Maybe one of you has met this issue before or you may have a solution/alternative for me.
Just to capture this in an answer:
As seen here.