fix: opt in to import.meta.* properties

This commit is contained in:
Daniel Roe 2024-03-25 16:32:44 +00:00
parent d6b11afd2d
commit 647c9484b5
No known key found for this signature in database
GPG key ID: 3714AB03996F442B

View file

@ -3,7 +3,7 @@ import { ref } from 'vue';
import { initWideAngle } from 'wideangle-vuejs';
export default defineNuxtPlugin(() => {
if(process.server) {
if(import.meta.server) {
console.warn("[WAA] Plugin will not be enabled on server side.");
return;
}