Skip to content
Snippets Groups Projects
Commit c7969ef4 authored by syuilo's avatar syuilo
Browse files

refactor

parent a3cdb4cc
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,14 @@ import { url as local } from '@/config';
import * as os from '@/os';
import { useTooltip } from '@/scripts/use-tooltip';
function safeURIDecode(str: string) {
try {
return decodeURIComponent(str);
} catch {
return str;
}
}
export default defineComponent({
props: {
url: {
......@@ -49,14 +57,6 @@ export default defineComponent({
}, {}, 'closed');
});
function safeURIDecode(str: string) {
try {
return decodeURIComponent(str);
} catch {
return str;
}
}
return {
local,
schema: url.protocol,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment