diff options
Diffstat (limited to 'src/webview')
-rw-r--r-- | src/webview/badge.ts | 2 | ||||
-rw-r--r-- | src/webview/dialogTitle.ts | 2 | ||||
-rw-r--r-- | src/webview/recipe.js | 6 | ||||
-rw-r--r-- | src/webview/sessionHandler.ts | 2 |
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 | ||
3 | const debug = require('../preload-safe-debug')('Ferdium:Plugin:BadgeHandler'); | 3 | const debug = require('../preload-safe-debug')('Ferdium:Plugin:BadgeHandler'); |
4 | 4 | ||
5 | export class BadgeHandler { | 5 | export 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 | ||
3 | const debug = require('../preload-safe-debug')('Ferdium:Plugin:DialogTitleHandler'); | 3 | const debug = require('../preload-safe-debug')('Ferdium:Plugin:DialogTitleHandler'); |
4 | 4 | ||
5 | export class DialogTitleHandler { | 5 | export 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'; | |||
23 | import RecipeWebview from './lib/RecipeWebview'; | 23 | import RecipeWebview from './lib/RecipeWebview'; |
24 | import Userscript from './lib/Userscript'; | 24 | import Userscript from './lib/Userscript'; |
25 | 25 | ||
26 | import { BadgeHandler } from './badge'; | 26 | import BadgeHandler from './badge'; |
27 | import { DialogTitleHandler } from './dialogTitle'; | 27 | import DialogTitleHandler from './dialogTitle'; |
28 | import { SessionHandler } from './sessionHandler'; | 28 | import SessionHandler from './sessionHandler'; |
29 | import contextMenu from './contextMenu'; | 29 | import contextMenu from './contextMenu'; |
30 | import { | 30 | import { |
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 @@ | |||
1 | const debug = require('../preload-safe-debug')('Ferdium:Plugin:SessionHandler'); | 1 | const debug = require('../preload-safe-debug')('Ferdium:Plugin:SessionHandler'); |
2 | 2 | ||
3 | export class SessionHandler { | 3 | export default class SessionHandler { |
4 | async releaseServiceWorkers() { | 4 | async releaseServiceWorkers() { |
5 | try { | 5 | try { |
6 | const registrations = | 6 | const registrations = |