diff options
Diffstat (limited to 'src/webview/lib/RecipeWebview.js')
-rw-r--r-- | src/webview/lib/RecipeWebview.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/webview/lib/RecipeWebview.js b/src/webview/lib/RecipeWebview.js index 96caa125e..2bd6bad8d 100644 --- a/src/webview/lib/RecipeWebview.js +++ b/src/webview/lib/RecipeWebview.js | |||
@@ -47,6 +47,15 @@ class RecipeWebview { | |||
47 | } | 47 | } |
48 | 48 | ||
49 | /** | 49 | /** |
50 | * Safely parse the given text into an integer | ||
51 | * | ||
52 | * @param {string | number | undefined | null} text to be parsed | ||
53 | */ | ||
54 | safeParseInt(text) { | ||
55 | return this.badgeHandler.safeParseInt(text); | ||
56 | } | ||
57 | |||
58 | /** | ||
50 | * Injects the contents of a CSS file into the current webview | 59 | * Injects the contents of a CSS file into the current webview |
51 | * | 60 | * |
52 | * @param {Array} files CSS files that should be injected. This must | 61 | * @param {Array} files CSS files that should be injected. This must |