var url = 'chrome-extension://' + extensionId + '/cast_sender.js';
xhr.open('GET', url, true);
xhr.onerror = function() { callback(false); };
- xhr.onreadystatechange =
- /** @param {*} response */
- function(event) {
- if (xhr.readyState == 4 && xhr.status === 200) {
- // Cast extension found.
- callback(true);
- }
- }.wrap(this);
+ /** @param {*} event */
+ xhr.onreadystatechange = function(event) {
+ if (xhr.readyState == 4 && xhr.status === 200) {
+ // Cast extension found.
+ callback(true);
+ }
+ }.wrap(this);
xhr.send();
};