1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/** * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ import { createPinia } from 'pinia' export const getPinia = () => { if (window._nc_files_pinia) { return window._nc_files_pinia } window._nc_files_pinia = createPinia() return window._nc_files_pinia }