Browse Source

fix(gui): ignore plugin details call if public page

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/669/head
Pranav C 3 years ago
parent
commit
6cc0a6acaf
  1. 4
      packages/nc-gui/plugins/projectLoader.js

4
packages/nc-gui/plugins/projectLoader.js

@ -1,5 +1,5 @@
export default async({ store, redirect, $axios, $toast }) => {
await store.dispatch('plugins/pluginPostInstall', 'Branding')
export default async({ store, redirect, $axios, $toast, route }) => {
if (!route.path || !route.path.startsWith('/nc/')) { await store.dispatch('plugins/pluginPostInstall', 'Branding') }
if (window.location.search &&
/\bscope=|\bstate=/.test(window.location.search) &&
/\bcode=/.test(window.location.search)) {

Loading…
Cancel
Save