camelCase

This commit is contained in:
Official Noob
2019-08-08 16:45:23 +01:00
committed by GitHub
parent 22e7c6a40d
commit 4c12bb9c2f

View File

@@ -5,7 +5,7 @@ var userID = null;
chrome.tabs.onActivated.addListener( chrome.tabs.onActivated.addListener(
function(activeInfo) { function(activeInfo) {
chrome.tabs.get(activeInfo.tabId, function(tab) { chrome.tabs.get(activeInfo.tabId, function(tab) {
TabUpdate(activeInfo.tabId); tabUpdate(activeInfo.tabId);
}) })
} }
); );
@@ -15,7 +15,7 @@ chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) {
if (changeInfo != undefined) { if (changeInfo != undefined) {
//if URL changed //if URL changed
if (tabId) { if (tabId) {
TabUpdate(tabId); tabUpdate(tabId);
} }
} }
}); });
@@ -164,7 +164,7 @@ function submitTimes(videoID, callback) {
}); });
} }
function TabUpdate(tabId) { function tabUpdate(tabId) {
//send a message to the content script //send a message to the content script
chrome.tabs.sendMessage(tabId, { chrome.tabs.sendMessage(tabId, {
message: 'update' message: 'update'