diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2023-05-24 06:57:50 +0530 |
---|---|---|
committer | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2023-05-24 16:40:43 +0530 |
commit | e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b (patch) | |
tree | d684777b3fde5470c9f99304a9f022422ffb8045 /src/webview/lib | |
parent | 6.3.0-nightly.9 [skip ci] (diff) | |
download | ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.tar.gz ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.tar.zst ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.zip |
Upgrade npm modules
Diffstat (limited to 'src/webview/lib')
-rw-r--r-- | src/webview/lib/RecipeWebview.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webview/lib/RecipeWebview.ts b/src/webview/lib/RecipeWebview.ts index 436525b9e..44b3c5ab4 100644 --- a/src/webview/lib/RecipeWebview.ts +++ b/src/webview/lib/RecipeWebview.ts | |||
@@ -101,13 +101,13 @@ class RecipeWebview { | |||
101 | * @param {string | number | undefined | null} text to be parsed | 101 | * @param {string | number | undefined | null} text to be parsed |
102 | */ | 102 | */ |
103 | isImage(link): boolean { | 103 | isImage(link): boolean { |
104 | if (typeof link === 'undefined') { | 104 | if (link === undefined) { |
105 | return false; | 105 | return false; |
106 | } | 106 | } |
107 | 107 | ||
108 | const { role } = link.dataset; | 108 | const { role } = link.dataset; |
109 | 109 | ||
110 | if (typeof role !== 'undefined') { | 110 | if (role !== undefined) { |
111 | const roles = ['img']; | 111 | const roles = ['img']; |
112 | return roles.includes(role); | 112 | return roles.includes(role); |
113 | } | 113 | } |