Enhance link security in Orders.vue with noopener,noreferrer and add conditional slot rendering to ViewportResponsiveWrapper.vue.
This commit is contained in:
@@ -673,7 +673,8 @@ const showChangeOrderInvoiceCollectionForm = async (id) => {
|
||||
const downloadLink = response.data.data.download_link;
|
||||
if (autoOpen) {
|
||||
// Open the download link in a new tab
|
||||
window.open(downloadLink, '_blank');
|
||||
//window.open(downloadLink, '_blank');
|
||||
window.open(downloadLink, '_blank', 'noopener,noreferrer');
|
||||
}
|
||||
return response.data.data.download_link;
|
||||
}).catch((error) => {
|
||||
|
||||
@@ -17,16 +17,16 @@ const isDesktop = useMediaQuery('(min-width: 1025px)', getMatch('(min-width: 102
|
||||
|
||||
<template>
|
||||
<template v-if="isMobile">
|
||||
<slot name="mobile" />
|
||||
<slot name="mobile" v-if="$slots.mobile" />
|
||||
</template>
|
||||
<template v-else-if="isTablet">
|
||||
<slot name="tablet" />
|
||||
<slot name="tablet" v-if="$slots.tablet" />
|
||||
</template>
|
||||
<template v-else-if="isDesktop">
|
||||
<slot name="desktop" />
|
||||
<slot name="desktop" v-if="$slots.desktop" />
|
||||
</template>
|
||||
<template v-else>
|
||||
<slot name="default" />
|
||||
<slot name="default" v-if="$slots.default" />
|
||||
</template>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user