add console on_open 'mode' argument
This commit is contained in:
@@ -194,7 +194,7 @@ function set_mode(mode)
|
||||
console_mode = mode
|
||||
end
|
||||
|
||||
function on_open()
|
||||
function on_open(mode)
|
||||
if modes == nil then
|
||||
modes = RadioGroup({
|
||||
chat=document.s_chat,
|
||||
@@ -204,4 +204,7 @@ function on_open()
|
||||
set_mode(mode)
|
||||
end, "console")
|
||||
end
|
||||
if mode then
|
||||
modes:set(mode)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user