| Index: remoting/webapp/base/js/base.js
|
| diff --git a/remoting/webapp/base/js/base.js b/remoting/webapp/base/js/base.js
|
| index 86c91565bb9f1907eaa792dbafeb4dcb5f0e187f..97fa5360d895ec2ed27c6cc6967b6b43a806c0be 100644
|
| --- a/remoting/webapp/base/js/base.js
|
| +++ b/remoting/webapp/base/js/base.js
|
| @@ -467,4 +467,12 @@ base.jsonParseSafe = function(jsonString) {
|
| } catch (err) {
|
| return undefined;
|
| }
|
| -}
|
| +};
|
| +
|
| +/**
|
| + * @return {boolean} whether the calling script is executing in the background
|
| + * page or not.
|
| + */
|
| +base.isBackgroundPage = function() {
|
| + return base.isAppsV2() && !Boolean(chrome.app.window.current());
|
| +};
|
|
|