mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-30 17:27:22 +08:00
This CL changes references to self.SDK.targetManager (the global instance of SDK.SDKModel.TargetManager) over to SDK.SDKModel.TargetManager.instance(). To keep both TypeScript and Closure happy we must make a method on the TargetManager class itself, since it only allows private constructors to be accessed by static methods on the class. Bug: 1058320 Change-Id: I6ca35024c21cf24254fd6273138a1ab3e163ee00 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2088092 Commit-Queue: Paul Lewis <aerotwist@chromium.org> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>