Fix coding style in web/chromecom.js
This commit is contained in:
parent
6597fea0da
commit
047a82a07e
1 changed files with 3 additions and 1 deletions
|
@ -35,7 +35,9 @@ var ChromeCom = (function ChromeComClosure() {
|
||||||
};
|
};
|
||||||
if (!chrome.runtime) {
|
if (!chrome.runtime) {
|
||||||
console.error('chrome.runtime is undefined.');
|
console.error('chrome.runtime is undefined.');
|
||||||
if (callback) callback();
|
if (callback) {
|
||||||
|
callback();
|
||||||
|
}
|
||||||
} else if (callback) {
|
} else if (callback) {
|
||||||
chrome.runtime.sendMessage(message, callback);
|
chrome.runtime.sendMessage(message, callback);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue