You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Determines whether the given string is a valid HTTP or HTTPS URL.
158
159
* @function
159
-
* @param {string} string - The string to test for validity as an HTTP or HTTPS URL.
160
+
* @param {string|URL} string - The string to test for validity as an HTTP or HTTPS URL.
160
161
* @returns {boolean} - True if the string is a valid HTTP or HTTPS URL, false otherwise.
161
162
*/
162
163
functionisValidHttpUrl(string){
@@ -175,7 +176,7 @@ function isValidHttpUrl(string) {
175
176
*
176
177
* @async
177
178
* @function getFile
178
-
* @param {string} url - The URL of the file to get.
179
+
* @param {string|URL} url - The URL of the file to get.
179
180
* @returns {Promise<FileResponse|Response>} A promise that resolves to a FileResponse object (if the file is retrieved using the FileSystem API), or a Response object (if the file is retrieved using the Fetch API).
0 commit comments