refactor: enhance SystemSetting submission logic and handle empty WorkerUrl
This commit is contained in:
1 parent
fdd349c909
commit
91902ce1f4
2 files changed
+7
-3
No files matched your search
@@ -143,6 +143,7 @@ export function openPage(url) {
|
||||
}
|
||||
|
||||
export function removeTrailingSlash(url) {
|
||||
if (!url) return '';
|
||||
if (url.endsWith('/')) {
|
||||
return url.slice(0, -1);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user