aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorLibravatar André Oliveira <37463445+SpecialAro@users.noreply.github.com>2022-05-31 16:07:41 +0100
committerLibravatar GitHub <noreply@github.com>2022-05-31 16:07:41 +0100
commit804aafb265e93c50abcb4d2c28e0ddfab16a36bb (patch)
treed11dd6abab6c98b19b617c3c4de1815122fe2888 /docs
parentChange of Proton Service URL (#36) (diff)
downloadferdium-recipes-804aafb265e93c50abcb4d2c28e0ddfab16a36bb.tar.gz
ferdium-recipes-804aafb265e93c50abcb4d2c28e0ddfab16a36bb.tar.zst
ferdium-recipes-804aafb265e93c50abcb4d2c28e0ddfab16a36bb.zip
Fix open image in app or externally (instead of popup) (#37)
Fix #195 on Ferdium-app which causes a problem when opening images inside the discord (and possibly zoom).
Diffstat (limited to 'docs')
-rw-r--r--docs/frontend_api.md19
1 files changed, 18 insertions, 1 deletions
diff --git a/docs/frontend_api.md b/docs/frontend_api.md
index af9acf8..f1edc0f 100644
--- a/docs/frontend_api.md
+++ b/docs/frontend_api.md
@@ -29,9 +29,12 @@
29 - [safeParseInt(stringText)](#safeparseintstringtext) 29 - [safeParseInt(stringText)](#safeparseintstringtext)
30 - [Arguments](#arguments-8) 30 - [Arguments](#arguments-8)
31 - [Usage](#usage-8) 31 - [Usage](#usage-8)
32 - [setDialogTitle(title)](#setdialogtitletitle-1) 32 - [isImage(url)](#isimageurl)
33 - [Arguments](#arguments-9) 33 - [Arguments](#arguments-9)
34 - [Usage](#usage-9) 34 - [Usage](#usage-9)
35 - [setDialogTitle(title)](#setdialogtitletitle-1)
36 - [Arguments](#arguments-10)
37 - [Usage](#usage-10)
35 38
36# Frontend API 39# Frontend API
37 40
@@ -305,6 +308,20 @@ A utility method that can be used to safely parse the text content (handles null
305Ferdium.safeParseInt(mySelector.innerText) 308Ferdium.safeParseInt(mySelector.innerText)
306``` 309```
307 310
311### isImage(url)
312
313A utility method that can be used to verify if a url is an image. Returns `true` if is image and `false` if it is not an image.
314
315#### Arguments
316
3171. `url` Url to be parsed.
318
319#### Usage
320
321```JavaScript
322Ferdium.isImage(url)
323```
324
308### setDialogTitle(title) 325### setDialogTitle(title)
309 326
310When you want to set the title of the Ferdium window (while this service is active or in focus), you can use this function 327When you want to set the title of the Ferdium window (while this service is active or in focus), you can use this function