remove str.at() - not working in safari 14

This commit is contained in:
tom
2023-03-09 16:05:01 -06:00
parent 6bc8d06083
commit 4fc4bc25e8
+1 -1
View File
@@ -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) => ({