mirror of
https://github.com/TangentFoxy/lurker.git
synced 2025-07-27 18:42:18 +00:00
Made lurker default to global lume
before requiring
This commit is contained in:
@@ -7,8 +7,9 @@
|
||||
-- under the terms of the MIT license. See LICENSE for details.
|
||||
--
|
||||
|
||||
-- Assumes lume is in the same directory as this file
|
||||
local lume = require((...):gsub("[^/.\\]+$", "lume"))
|
||||
-- Assumes lume is in the same directory as this file if it does not exist
|
||||
-- as a global
|
||||
local lume = rawget(_G, "lume") or require((...):gsub("[^/.\\]+$", "lume"))
|
||||
|
||||
local lurker = { _version = "1.0.1" }
|
||||
|
||||
@@ -258,3 +259,4 @@ end
|
||||
|
||||
|
||||
return lurker.init()
|
||||
|
||||
|
Reference in New Issue
Block a user