You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 anAppManifest
in an app context and aExtensionManifest
in an extension context.This could probably achieved by using implicits but this has to be tested and compared to possible other solutions.
The text was updated successfully, but these errors were encountered: