Thu, 22 Oct 2020 15:27:48 +0100
docs/example.lua: Don't depend on 'verse' being a global
doc/example.lua | file | annotate | diff | comparison | revisions |
--- a/doc/example.lua Thu Oct 22 15:27:22 2020 +0100 +++ b/doc/example.lua Thu Oct 22 15:27:48 2020 +0100 @@ -5,7 +5,7 @@ -- handy if you're hacking on Verse itself --os.execute("squish --minify-level=none verse"); -require "verse".init("client"); +local verse = require "verse".init("client"); c = verse.new(); c:add_plugin("version");