mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
remove str.at() - not working in safari 14
This commit is contained in:
@@ -26,7 +26,7 @@ import appConfig from 'configs/app/config';
|
||||
// ]).replaceAll('"', '\'');
|
||||
|
||||
const stripTrailingSlash = (str: string) => str[str.length - 1] === '/' ? str.slice(0, -1) : str;
|
||||
const addLeadingSlash = (str: string) => str.at(0) === '/' ? str : '/' + str;
|
||||
const addLeadingSlash = (str: string) => str[0] === '/' ? str : '/' + str;
|
||||
|
||||
const networkExplorers: Array<NetworkExplorer> = (() => {
|
||||
return appConfig.network.explorers.map((explorer) => ({
|
||||
|
||||
Reference in New Issue
Block a user