Skip to content

Commit

Permalink
adapt channel tests, fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hhaensel committed Nov 12, 2024
1 parent 573ff4a commit 4783f09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Stipple.jl
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ end
# no longer needed, replaced by initscript
function channelscript(channel::String) :: String
Genie.Renderer.Html.script(["""
document.addEventListener('DOMContentLoaded', () => window.Genie.initWebChannel('$dchannel') );
document.addEventListener('DOMContentLoaded', () => window.Genie.initWebChannel('$channel') );
"""])
end

Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function string_get(x; kwargs...)
end

function get_channel(s::String)
match(r"initWebChannel\('([^']+)'", s).captures[1]
match(r"\(\) => window.create[^']+'([^']+)'", s).captures[1]
end

function get_debounce(port, modelname)
Expand Down

0 comments on commit 4783f09

Please sign in to comment.