Future proof to Nuxt 3.7.0+ (#3)

This commit is contained in:
Jarek Rozanski 2024-04-02 20:49:18 +02:00 committed by GitHub
parent d6b11afd2d
commit 7b78980023
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13009 additions and 5505 deletions

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;
}