diff --git a/src/Stipple.jl b/src/Stipple.jl index 4240aba..e424fee 100644 --- a/src/Stipple.jl +++ b/src/Stipple.jl @@ -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 diff --git a/test/runtests.jl b/test/runtests.jl index 909837e..22e1754 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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)