From c265c7991691828019c0a06c44f62a5d2d072c0f Mon Sep 17 00:00:00 2001 From: André Oliveira <37463445+SpecialAro@users.noreply.github.com> Date: Tue, 12 Jul 2022 23:35:09 +0100 Subject: Change isImage to link and stayInsideDiscord (#120) * Change isImage to URL and stayInsideDiscord * Fix comments --- docs/frontend_api.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/frontend_api.md') 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 @@ - [safeParseInt(stringText)](#safeparseintstringtext) - [Arguments](#arguments-8) - [Usage](#usage-8) - - [isImage(url)](#isimageurl) + - [isImage(link)](#isimagelink) - [Arguments](#arguments-9) - [Usage](#usage-9) - [setDialogTitle(title)](#setdialogtitletitle-1) @@ -308,9 +308,9 @@ A utility method that can be used to safely parse the text content (handles null Ferdium.safeParseInt(mySelector.innerText) ``` -### isImage(url) +### isImage(link) -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. +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. #### Arguments @@ -319,7 +319,7 @@ A utility method that can be used to verify if a url is an image. Returns `true` #### Usage ```JavaScript -Ferdium.isImage(url) +Ferdium.isImage(link) ``` ### setDialogTitle(title) -- cgit v1.2.3-54-g00ecf