summaryrefslogtreecommitdiffstats
path: root/src/webview
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-07-02 05:13:38 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2022-07-02 06:19:03 +0530
commitd16cc1f2c59818e53f28b4d6b4d27250331f15d7 (patch)
tree57bf4d149ec2be88dd0d351142998ce96db0d659 /src/webview
parentchore: correctly export/import ui elements (diff)
downloadferdium-app-d16cc1f2c59818e53f28b4d6b4d27250331f15d7.tar.gz
ferdium-app-d16cc1f2c59818e53f28b4d6b4d27250331f15d7.tar.zst
ferdium-app-d16cc1f2c59818e53f28b4d6b4d27250331f15d7.zip
Use default exports instead of named exports
Diffstat (limited to 'src/webview')
-rw-r--r--src/webview/badge.ts2
-rw-r--r--src/webview/dialogTitle.ts2
-rw-r--r--src/webview/recipe.js6
-rw-r--r--src/webview/sessionHandler.ts2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/webview/badge.ts b/src/webview/badge.ts
index 898f8cdcf..afecd22d4 100644
--- a/src/webview/badge.ts
+++ b/src/webview/badge.ts
@@ -2,7 +2,7 @@ import { ipcRenderer } from 'electron';
2 2
3const debug = require('../preload-safe-debug')('Ferdium:Plugin:BadgeHandler'); 3const debug = require('../preload-safe-debug')('Ferdium:Plugin:BadgeHandler');
4 4
5export class BadgeHandler { 5export default class BadgeHandler {
6 // TODO: Need to extract this into a utility class and reuse outside of the recipes 6 // TODO: Need to extract this into a utility class and reuse outside of the recipes
7 safeParseInt(text: string | number | undefined | null) { 7 safeParseInt(text: string | number | undefined | null) {
8 if (text === undefined || text === null) { 8 if (text === undefined || text === null) {
diff --git a/src/webview/dialogTitle.ts b/src/webview/dialogTitle.ts
index 12e007e26..67b4e5b6b 100644
--- a/src/webview/dialogTitle.ts
+++ b/src/webview/dialogTitle.ts
@@ -2,7 +2,7 @@ import { ipcRenderer } from 'electron';
2 2
3const debug = require('../preload-safe-debug')('Ferdium:Plugin:DialogTitleHandler'); 3const debug = require('../preload-safe-debug')('Ferdium:Plugin:DialogTitleHandler');
4 4
5export class DialogTitleHandler { 5export default class DialogTitleHandler {
6 titleCache: { title: string }; 6 titleCache: { title: string };
7 7
8 constructor() { 8 constructor() {
diff --git a/src/webview/recipe.js b/src/webview/recipe.js
index 9d5a97767..3c8a5326f 100644
--- a/src/webview/recipe.js
+++ b/src/webview/recipe.js
@@ -23,9 +23,9 @@ import customDarkModeCss from './darkmode/custom';
23import RecipeWebview from './lib/RecipeWebview'; 23import RecipeWebview from './lib/RecipeWebview';
24import Userscript from './lib/Userscript'; 24import Userscript from './lib/Userscript';
25 25
26import { BadgeHandler } from './badge'; 26import BadgeHandler from './badge';
27import { DialogTitleHandler } from './dialogTitle'; 27import DialogTitleHandler from './dialogTitle';
28import { SessionHandler } from './sessionHandler'; 28import SessionHandler from './sessionHandler';
29import contextMenu from './contextMenu'; 29import contextMenu from './contextMenu';
30import { 30import {
31 darkModeStyleExists, 31 darkModeStyleExists,
diff --git a/src/webview/sessionHandler.ts b/src/webview/sessionHandler.ts
index 00eacdf50..8949f5d2d 100644
--- a/src/webview/sessionHandler.ts
+++ b/src/webview/sessionHandler.ts
@@ -1,6 +1,6 @@
1const debug = require('../preload-safe-debug')('Ferdium:Plugin:SessionHandler'); 1const debug = require('../preload-safe-debug')('Ferdium:Plugin:SessionHandler');
2 2
3export class SessionHandler { 3export default class SessionHandler {
4 async releaseServiceWorkers() { 4 async releaseServiceWorkers() {
5 try { 5 try {
6 const registrations = 6 const registrations =