From 90d646ba255904c19047877a424315d6afeccc1b Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Wed, 3 Jul 2019 21:03:12 +0200 Subject: [PATCH] remove dead code --- src/ext/lib/video-data/PageInfo.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/ext/lib/video-data/PageInfo.js b/src/ext/lib/video-data/PageInfo.js index e27ea5e..bb74628 100644 --- a/src/ext/lib/video-data/PageInfo.js +++ b/src/ext/lib/video-data/PageInfo.js @@ -18,8 +18,9 @@ class PageInfo { this.lastUrl = window.location.href; this.extensionMode = extensionMode; + this.readOnly = readOnly; - if(comms){ + if (comms){ this.comms = comms; } @@ -27,18 +28,6 @@ class PageInfo { this.scheduleUrlCheck(); this.currentZoomScale = 1; - - try { - const playerStyleString = this.settings.active.sites[window.location.host].css; - if (playerStyleString) { - this.comms.sendMessage({ - cmd: 'inject-css', - cssString: playerStyleString - }); - } - } catch (e) { - // do nothing. It's ok if there's no special settings for the player element - } } destroy() {