diff options
author | André Oliveira <37463445+SpecialAro@users.noreply.github.com> | 2022-07-12 23:35:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-12 23:35:09 +0100 |
commit | c265c7991691828019c0a06c44f62a5d2d072c0f (patch) | |
tree | 0d1563f8d8a4f12d04a3d65c23582ca58863021d /docs/frontend_api.md | |
parent | Fix facebook notifications counter (#118) (diff) | |
download | ferdium-recipes-c265c7991691828019c0a06c44f62a5d2d072c0f.tar.gz ferdium-recipes-c265c7991691828019c0a06c44f62a5d2d072c0f.tar.zst ferdium-recipes-c265c7991691828019c0a06c44f62a5d2d072c0f.zip |
Change isImage to link and stayInsideDiscord (#120)
* Change isImage to URL and stayInsideDiscord
* Fix comments
Diffstat (limited to 'docs/frontend_api.md')
-rw-r--r-- | docs/frontend_api.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/frontend_api.md b/docs/frontend_api.md index f1edc0f..b40ae76 100644 --- a/docs/frontend_api.md +++ b/docs/frontend_api.md | |||
@@ -29,7 +29,7 @@ | |||
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 | - [isImage(url)](#isimageurl) | 32 | - [isImage(link)](#isimagelink) |
33 | - [Arguments](#arguments-9) | 33 | - [Arguments](#arguments-9) |
34 | - [Usage](#usage-9) | 34 | - [Usage](#usage-9) |
35 | - [setDialogTitle(title)](#setdialogtitletitle-1) | 35 | - [setDialogTitle(title)](#setdialogtitletitle-1) |
@@ -308,9 +308,9 @@ A utility method that can be used to safely parse the text content (handles null | |||
308 | Ferdium.safeParseInt(mySelector.innerText) | 308 | Ferdium.safeParseInt(mySelector.innerText) |
309 | ``` | 309 | ``` |
310 | 310 | ||
311 | ### isImage(url) | 311 | ### isImage(link) |
312 | 312 | ||
313 | A 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. | 313 | A utility method that can be used to verify if a link is an image. Returns `true` if is image and `false` if it is not an image. |
314 | 314 | ||
315 | #### Arguments | 315 | #### Arguments |
316 | 316 | ||
@@ -319,7 +319,7 @@ A utility method that can be used to verify if a url is an image. Returns `true` | |||
319 | #### Usage | 319 | #### Usage |
320 | 320 | ||
321 | ```JavaScript | 321 | ```JavaScript |
322 | Ferdium.isImage(url) | 322 | Ferdium.isImage(link) |
323 | ``` | 323 | ``` |
324 | 324 | ||
325 | ### setDialogTitle(title) | 325 | ### setDialogTitle(title) |