-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
Description
The problem is that some APIs are exclusive to Apps or Extensions or ChromeOS. Currently you can access all APIs all the time and they will simply fail at runtime.
Some functions behave differently depending on the context and return different types like for example chrome.runtime.Runtime.getManifest which should return an AppManifest in an app context and a ExtensionManifest in an extension context.
This could probably achieved by using implicits but this has to be tested and compared to possible other solutions.