Add CreateApiContext and more caller info

This commit is contained in:
boatbomber 2022-09-27 01:59:48 -04:00
parent f3de0c35ef
commit 2a25193941
2 changed files with 59 additions and 7 deletions

View file

@ -49,7 +49,7 @@ function App:init()
self.host, self.setHost = Roact.createBinding(priorHost or "")
self.port, self.setPort = Roact.createBinding(priorPort or "")
self.headlessAPI, self.readOnlyHeadlessAPI = HeadlessAPI.new(self, Config, Settings)
self.headlessAPI, self.readOnlyHeadlessAPI = HeadlessAPI.new(self)
-- selene: allow(global_usage)
_G.Rojo = self.readOnlyHeadlessAPI -- Expose headless to other plugins and command bar