Skip to content

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

@XLin0mu

Description

@XLin0mu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions