diff --git a/Project.toml b/Project.toml index 91769e52..9438538e 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Stipple" uuid = "4acbeb90-81a0-11ea-1966-bdaff8155998" authors = ["Adrian "] -version = "0.27.29" +version = "0.27.30" [deps] Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" diff --git a/src/Stipple.jl b/src/Stipple.jl index 1cf3ba49..b454fc6f 100644 --- a/src/Stipple.jl +++ b/src/Stipple.jl @@ -16,6 +16,7 @@ existing Vue.js libraries. module Stipple const PRECOMPILE = Ref(false) +const ALWAYS_REGISTER_CHANNELS = Ref(false) """ @using_except(expr) @@ -444,7 +445,7 @@ function init(t::Type{M}; debounce::Int = JS_DEBOUNCE_TIME, transport::Module = Genie.WebChannels, core_theme::Bool = true, - always_register_channels::Bool = false)::M where {M<:ReactiveModel, S<:AbstractString} + always_register_channels::Bool = ALWAYS_REGISTER_CHANNELS[])::M where {M<:ReactiveModel, S<:AbstractString} webtransport!(transport) AM = get_abstract_type(M)