summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/whispernet_proxy/js/nacl.js
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/resources/whispernet_proxy/js/nacl.js')
-rw-r--r--chromium/chrome/browser/resources/whispernet_proxy/js/nacl.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/chromium/chrome/browser/resources/whispernet_proxy/js/nacl.js b/chromium/chrome/browser/resources/whispernet_proxy/js/nacl.js
index 65057285d52..da8e48ca726 100644
--- a/chromium/chrome/browser/resources/whispernet_proxy/js/nacl.js
+++ b/chromium/chrome/browser/resources/whispernet_proxy/js/nacl.js
@@ -20,7 +20,7 @@ function NaclBridge(nmf, readyCallback) {
/**
* Method to send generic byte data to the whispernet wrapper.
- * @param {string} data Raw data to send to the whispernet wrapper.
+ * @param {Object} data Raw data to send to the whispernet wrapper.
*/
NaclBridge.prototype.send = function(data) {
if (this.isEnabled_) {
@@ -81,14 +81,13 @@ NaclBridge.prototype.loadNacl_ = function(manifestUrl) {
};
/**
- * Callback that is called when the Whispernet wrapper is loaded and forward
- * that status to the callback registered with us in the constructor.
+ * Called when the Whispernet wrapper is loaded.
* @private
*/
NaclBridge.prototype.onNaclReady_ = function() {
+ this.isEnabled_ = true;
if (this.readyCallback_)
this.readyCallback_();
- this.isEnabled_ = true;
};
/**