diff --git a/src/js/coder.js b/src/js/coder.js index c87cc95..90d862f 100644 --- a/src/js/coder.js +++ b/src/js/coder.js @@ -106,7 +106,7 @@ let coder = new Vue({ }, filters: { fixURL: value => { - if (!value.startsWith('http://') || !value.startsWith('https://')) { + if (!value.startsWith('http://') && !value.startsWith('https://')) { value = `https://${value}`; } return value; @@ -195,4 +195,4 @@ let coder = new Vue({ }); } } -}); \ No newline at end of file +});