diff --git a/src/components/CoolLightBox.vue b/src/components/CoolLightBox.vue index 8f14eae..d0142e1 100644 --- a/src/components/CoolLightBox.vue +++ b/src/components/CoolLightBox.vue @@ -1687,7 +1687,8 @@ export default { return false } - const str = new String(url) + const urlObj = new URL(url) + const str = new String(urlObj.pathname) if(str.endsWith('.pdf')){ return url } @@ -2622,4 +2623,4 @@ $breakpoints: ( transform: rotate(360deg); } } - \ No newline at end of file +