-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(extension-load-queue): fixed TODO, added multi queues logic, adde…
…d comments
- Loading branch information
1 parent
17afff6
commit 12adc67
Showing
2 changed files
with
140 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* Checks if the current environment is a browser. | ||
* | ||
* This function verifies whether the code is being executed in a browser environment. | ||
* It checks for the presence of the `window` object, which is unique to browsers. | ||
* | ||
* @returns {boolean} - Returns `true` if the current environment is a browser, otherwise `false`. | ||
*/ | ||
export const isBrowser = () => { | ||
return typeof window !== 'undefined' && typeof window.document !== 'undefined'; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters