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:
NN
2015-03-02 22:13:49 +02:00
parent 0acdbea7fd
commit 0d3541aec2
+7
View File
@@ -5,6 +5,13 @@
/// <reference path='../webrtc/MediaStream.d.ts'/>
////////////////////
// Global object
////////////////////
interface Window {
chrome: typeof chrome;
}
////////////////////
// Alarms
////////////////////