Skip to content

Commit de66435

Browse files
🤖 Merge PR DefinitelyTyped#66045 Add additional chrome.offscreen Reasons to support additional types. by @helfrichmichael
https://developer.chrome.com/docs/extensions/reference/offscreen/#type-Reason
1 parent 163554d commit de66435

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎types/chrome/index.d.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5906,7 +5906,13 @@ declare namespace chrome.offscreen {
59065906
/** The offscreen document needs to use WebRTC APIs. */
59075907
WEB_RTC = "WEB_RTC",
59085908
/** The offscreen document needs to interact with the clipboard APIs(e.g. Navigator.clipboard). */
5909-
CLIPBOARD = "CLIPBOARD"
5909+
CLIPBOARD = "CLIPBOARD",
5910+
/** Specifies that the offscreen document needs access to localStorage. */
5911+
LOCAL_STORAGE = "LOCAL_STORAGE",
5912+
/** Specifies that the offscreen document needs to spawn workers. */
5913+
WORKERS = "WORKERS",
5914+
/** Specifies that the offscreen document needs to use navigator.geolocation. */
5915+
GEOLOCATION = "GEOLOCATION",
59105916
}
59115917

59125918
/** The parameters describing the offscreen document to create. */

0 commit comments

Comments
 (0)