aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2020-05-09 00:02:31 +0200
committerTeddy Wing2020-05-09 00:02:31 +0200
commit21afe4648732d2fc6b6fc0a92de3a0b0d7f91264 (patch)
tree560214db8c2295ba1ae71ca65fb85eae41298c51
parent173feca616980f4f8e9b38a0dee4c4d0fd30e3e6 (diff)
downloadnetflix-immersive-21afe4648732d2fc6b6fc0a92de3a0b0d7f91264.tar.bz2
styles: Make the styles() function the default export
-rw-r--r--netflix-immersive.user.js4
-rw-r--r--src/index.ts2
-rw-r--r--src/styles.ts2
3 files changed, 4 insertions, 4 deletions
diff --git a/netflix-immersive.user.js b/netflix-immersive.user.js
index 93307fc..4219d65 100644
--- a/netflix-immersive.user.js
+++ b/netflix-immersive.user.js
@@ -76,7 +76,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
var fullscreen_credits_1 = require("./fullscreen_credits");
var styles_1 = require("./styles");
var watch_credits_1 = require("./watch_credits");
-styles_1.styles();
+styles_1.default();
fullscreen_credits_1.default();
watch_credits_1.default();
@@ -109,7 +109,7 @@ function styles() {
var stylesheet = style.sheet;
stylesheet.insertRule("\n\t\t/* \"Back to Browse\" button that appears when credits are minimised. */\n\t\t.OriginalsPostPlay-BackgroundTrailer .BackToBrowse,\n\n\t\t/* Age rating. */\n\t\t.player-view-childrens,\n\n\t\t/* \"Watch Credits\" button. */\n\t\t[data-uia=\"watch-credits-seamless-button\"],\n\n\t\t/* Skip buttons. */\n\t\ta[aria-label=\"Skip Intro\"],\n\t\ta[aria-label=\"Skip Recap\"],\n\t\ta[aria-label=\"Next Episode\"],\n\t\t[data-uia=\"next-episode-seamless-button\"] {\n\t\t\tvisibility: hidden;\n\t\t}", stylesheet.cssRules.length);
}
-exports.styles = styles;
+exports.default = styles;
},{}],6:[function(require,module,exports){
"use strict";
diff --git a/src/index.ts b/src/index.ts
index da889fc..9216a0a 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -16,7 +16,7 @@
// along with Immersive. If not, see <https://www.gnu.org/licenses/>.
import fullscreen_credits from './fullscreen_credits';
-import { styles } from './styles';
+import styles from './styles';
import watch_credits from './watch_credits';
diff --git a/src/styles.ts b/src/styles.ts
index ca4e64a..3e1658b 100644
--- a/src/styles.ts
+++ b/src/styles.ts
@@ -15,7 +15,7 @@
// You should have received a copy of the GNU General Public License
// along with Immersive. If not, see <https://www.gnu.org/licenses/>.
-export function styles () {
+export default function styles () {
const style = document.createElement('style');
document.head.appendChild(style);