generated from Seekra/repository-template
feat(settings): make settings page composable more compatible
The composable now uses replace instead of replaceAll which is not supported by some old browsers.
This commit is contained in:
@@ -20,7 +20,7 @@ const normalizePagePath = function normalizePagePath (path) {
|
|||||||
return path
|
return path
|
||||||
.replace(/\.+/g, '.')
|
.replace(/\.+/g, '.')
|
||||||
.replace(/^\.+|\.+$/g, '')
|
.replace(/^\.+|\.+$/g, '')
|
||||||
.replaceAll('.', '/');
|
.replace(/\./g, '/');
|
||||||
};
|
};
|
||||||
|
|
||||||
export const useSettingsPage = function useSettingsPage () {
|
export const useSettingsPage = function useSettingsPage () {
|
||||||
|
|||||||
Reference in New Issue
Block a user