mirror of
https://github.com/mue/mue.git
synced 2026-07-27 02:31:06 +02:00
refactor: settings tabs, improvements to logic + readability
Co-authored-by: David Ralph <me@davidcralph.co.uk>
This commit is contained in:
@@ -12,7 +12,7 @@ import Dropdown from '../Dropdown';
|
||||
|
||||
import SettingsItem from '../SettingsItem';
|
||||
import Header from '../Header';
|
||||
import { getTitleFromUrl, isValidUrl } from './utils/utils';
|
||||
import { getTitleFromUrl, isValidUrl } from 'modules/helpers/settings/modals';
|
||||
import QuickLink from './quicklinks/QuickLink';
|
||||
|
||||
function Navbar() {
|
||||
@@ -32,7 +32,7 @@ function Navbar() {
|
||||
const data = JSON.parse(localStorage.getItem('applinks'));
|
||||
|
||||
if (!url.startsWith('http://') && !url.startsWith('https://')) {
|
||||
url = 'http://' + url;
|
||||
url = 'https://' + url;
|
||||
}
|
||||
|
||||
if (url.length <= 0 || isValidUrl(url) === false) {
|
||||
|
||||
Reference in New Issue
Block a user