Browse Source

chore(gui-v2): post-install script correction

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3384/head
Pranav C 2 years ago
parent
commit
4db9c21faf
  1. 4
      packages/nc-gui-v2/scripts/updateNuxtRouting.js

4
packages/nc-gui-v2/scripts/updateNuxtRouting.js

@ -12,8 +12,8 @@ const content = fs.readFileSync(filePath, 'utf8')
/** Replace `createWebHistory` with `createWebHashHistory` */
const updatedContent = content.replace(
/createWebHistory(\s*,\s*)createMemoryHistory/,
`createWebHashHistory as createWebHistory$1createMemoryHistory`,
/createRouter(\s*,\s*)createWebHistory(\s*,\s*)createMemoryHistory/,
`createRouter$1createWebHashHistory as createWebHistory$2createMemoryHistory`,
)
/** Update file content with updated code */

Loading…
Cancel
Save