JuliaGizmos / Blink.jl

Web-based GUIs for Julia
Other
360 stars 75 forks source link

Always get return value as Dict{String, Any}() after load external url. #314

Open XLin0mu opened 1 year ago

XLin0mu commented 1 year ago

code's piece as below :

julia> using Blink
julia> win = Window()

julia> @js win x = 5
5
#right return value

julia> loadurl(win, "https://www.github.com")
Dict{String, Any}()
#things coming bad

julia> @js win x = 6
Dict{String, Any}()
#wrong return value

But if open devtools in win before this, you can still get correct value of x in console. (although it's stiill wrong the return value in julia).

In julia do :

opentools(win)
#open devtools in julia
@js win x = 7

And in devtool's console we get :

> x
7