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-02-26 08:26:30 +02:00
parent 0acdbea7fd
commit 0d3541aec2

7
chrome/chrome.d.ts vendored
View File

@@ -5,6 +5,13 @@
/// <reference path='../webrtc/MediaStream.d.ts'/>
////////////////////
// Global object
////////////////////
interface Window {
chrome: typeof chrome;
}
////////////////////
// Alarms
////////////////////