Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
11
Frontend-Learner/node_modules/nuxt/dist/app/compat/interval.js
generated
vendored
Normal file
11
Frontend-Learner/node_modules/nuxt/dist/app/compat/interval.js
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { createError } from "../composables/error.js";
|
||||
const intervalError = "[nuxt] `setInterval` should not be used on the server. Consider wrapping it with an `onNuxtReady`, `onBeforeMount` or `onMounted` lifecycle hook, or ensure you only call it in the browser by checking `import.meta.client`.";
|
||||
export const setInterval = import.meta.client ? globalThis.setInterval : () => {
|
||||
if (import.meta.dev) {
|
||||
throw createError({
|
||||
statusCode: 500,
|
||||
message: intervalError
|
||||
});
|
||||
}
|
||||
console.error(intervalError);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue