Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/Features/Themes/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ function Themes.set(icon, theme)
Themes.change(icon)
end))
if typeof(theme) == "Instance" and theme:IsA("ModuleScript") then
theme = require(theme)
local themeModule = theme :: ModuleScript
theme = require(themeModule)
end
icon.appliedTheme = theme
Themes.rebuild(icon)
Expand Down Expand Up @@ -350,4 +351,4 @@ end



return Themes
return Themes
4 changes: 2 additions & 2 deletions src/Packages/Janitor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function Janitor.__index:Add(Object, MethodName, Index)
end
MethodName = MethodName or TypeDefaults[objectType] or "Destroy"
if type(Object) ~= "function" and not Object[MethodName] then
warn(string.format(METHOD_NOT_FOUND_ERROR, tostring(Object), tostring(MethodName), debug.traceback(nil :: any, 2)))
warn(string.format(METHOD_NOT_FOUND_ERROR, tostring(Object), tostring(MethodName), debug.traceback(nil, 2)))
end

local OriginalTraceback = debug.traceback("")
Expand Down Expand Up @@ -319,4 +319,4 @@ for FunctionName, Function in next, Janitor.__index do
Janitor.__index[NewFunctionName] = Function
end

return Janitor
return Janitor
Loading