mirror of
https://github.com/TangentFoxy/lurker.git
synced 2025-07-28 11:02: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.
|
-- under the terms of the MIT license. See LICENSE for details.
|
||||||
--
|
--
|
||||||
|
|
||||||
-- Assumes lume is in the same directory as this file
|
-- Assumes lume is in the same directory as this file if it does not exist
|
||||||
local lume = require((...):gsub("[^/.\\]+$", "lume"))
|
-- as a global
|
||||||
|
local lume = rawget(_G, "lume") or require((...):gsub("[^/.\\]+$", "lume"))
|
||||||
|
|
||||||
local lurker = { _version = "1.0.1" }
|
local lurker = { _version = "1.0.1" }
|
||||||
|
|
||||||
@@ -258,3 +259,4 @@ end
|
|||||||
|
|
||||||
|
|
||||||
return lurker.init()
|
return lurker.init()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user