| Index: remoting/webapp/remoting.js
|
| diff --git a/remoting/webapp/remoting.js b/remoting/webapp/remoting.js
|
| index b536190526c9275f68a927341ec463e6ca1d3be3..33d0cc82474b4e1dc796f27a194520a3d167a4c4 100644
|
| --- a/remoting/webapp/remoting.js
|
| +++ b/remoting/webapp/remoting.js
|
| @@ -29,6 +29,7 @@ remoting.Error = {
|
| * Entry point for app initialization.
|
| */
|
| remoting.init = function() {
|
| + remoting.logExtensionInfoAsync_();
|
| l10n.localize();
|
| var button = document.getElementById('toggle-scaling');
|
| button.title = chrome.i18n.getMessage(/*i18n-content*/'TOOLTIP_SCALING');
|
| @@ -76,6 +77,23 @@ remoting.init = function() {
|
| };
|
|
|
| /**
|
| + * Log information about the current extension.
|
| + * The extension manifest is loaded and parsed to extract this info.
|
| + */
|
| +remoting.logExtensionInfoAsync_ = function() {
|
| + /** @type {XMLHttpRequest} */
|
| + var xhr = new XMLHttpRequest();
|
| + xhr.open('GET', 'manifest.json');
|
| + xhr.onload = function(e) {
|
| + var manifest =
|
| + /** @type {{name: string, version: string, default_locale: string}} */
|
| + JSON.parse(xhr.responseText);
|
| + console.log(manifest.name + ' version: ' + manifest.version);
|
| + }
|
| + xhr.send(null);
|
| +};
|
| +
|
| +/**
|
| * If the client is connected, or the host is shared, prompt before closing.
|
| *
|
| * @return {?string} The prompt string if a connection is active.
|
|
|