diff options
Diffstat (limited to 'script/library.lua')
-rw-r--r-- | script/library.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/script/library.lua b/script/library.lua index 9fc6a655..a46416c7 100644 --- a/script/library.lua +++ b/script/library.lua @@ -233,4 +233,12 @@ function m.init() initBuiltIn() end +config.watch(function (key, value, oldValue) + if key:find '^Lua.runtime' then + if value ~= oldValue then + initBuiltIn() + end + end +end) + return m |