mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-07 11:14:00 +08:00
Add global chrome object through window
It allows to add a check for existence of 'chrome' object. Without it the strict mode can complain about undefined variable.
This commit is contained in:
1 parent
0acdbea7fd
commit
0d3541aec2
1 file changed
+7
Vendored
+7
@@ -5,6 +5,13 @@
|
||||
|
||||
/// <reference path='../webrtc/MediaStream.d.ts'/>
|
||||
|
||||
////////////////////
|
||||
// Global object
|
||||
////////////////////
|
||||
interface Window {
|
||||
chrome: typeof chrome;
|
||||
}
|
||||
|
||||
////////////////////
|
||||
// Alarms
|
||||
////////////////////
|
||||
|
||||
Reference in new issue
Block a user