Skip to content

Commit

Permalink
ENH: fix issue with new electron version
Browse files Browse the repository at this point in the history
  • Loading branch information
sglyon committed Jan 11, 2018
1 parent d678752 commit 35c8c77
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/displays/electron.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ function get_window(ed::ElectronDisplay; kwargs...)
w = get(ed.w)
else
w = get_window(Dict(kwargs))
for it in 1:200 # wait up to 2 seconds...
if it == 100
error("Couldn't set up js comm with Blink")
end
@js(w, 1+1) == 2 && break
sleep(0.01)
end
ed.w = w
# load the js here
Blink.load!(w, _js_path)
Expand Down

0 comments on commit 35c8c77

Please sign in to comment.