Converted more code to TypeScript.

This commit is contained in:
Ajay Ramachandran
2020-01-28 23:52:15 -05:00
parent 03836b69f2
commit d77f8abf42
6 changed files with 37 additions and 1150 deletions

View File

@@ -134,7 +134,7 @@ class Utils {
matches: this.getInvidiousInstancesRegex()
};
if (isBackgroundScript) {
if (this.isBackgroundScript) {
registerFirefoxContentScript(registration);
} else {
chrome.runtime.sendMessage(registration);
@@ -172,7 +172,7 @@ class Utils {
if (this.isFirefox()) {
let id = "invidious";
if (isBackgroundScript) {
if (this.isBackgroundScript) {
if (contentScriptRegistrations[id]) {
contentScriptRegistrations[id].unregister();
delete contentScriptRegistrations[id];