Skip to content

Commit

Permalink
backwards compat in ui/main.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Upbolt committed Nov 7, 2021
1 parent f48ee66 commit df3d591
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ environment.hasMethods = hasMethods
environment.oh = {
Events = {},
Hooks = {},
Cache = importCache,
Methods = globalMethods,
Constants = {
Types = {
Expand Down
4 changes: 4 additions & 0 deletions ui/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ local HttpService = game:GetService("HttpService")

local Interface = import("rbxassetid://5042109928")

if oh.Cache["ui/main"] then
return Interface
end

import("ui/controls/TabSelector")
local MessageBox, MessageType = import("ui/controls/MessageBox")

Expand Down

0 comments on commit df3d591

Please sign in to comment.