UNPKG

scrivito

Version:

Scrivito is a professional, yet easy to use SaaS Enterprise Content Management Service, built for digital agencies and medium to large businesses. It is completely maintenance-free, cost-effective, and has unprecedented performance and security.

15 lines (11 loc) 385 B
const resetCallbacks: Array<() => void> = []; /** for test purposes */ export function onReset(callback: () => void): void { // enable code removal in production build if (process.env.NODE_ENV !== 'development') return; resetCallbacks.push(callback); } /** for test purposes */ export function runResetCallbacks(): void { resetCallbacks.forEach((callback) => callback()); }