Skip to content

Commit

Permalink
fix: CSP issue on loading RichWorkspace component
Browse files Browse the repository at this point in the history
Signed-off-by: Luka Trovic <[email protected]>
  • Loading branch information
luka-nextcloud committed Oct 11, 2023
1 parent 24792d9 commit d027cf1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/helpers/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,17 @@

import { emit } from '@nextcloud/event-bus'
import { Header } from '@nextcloud/files'
import { imagePath } from '@nextcloud/router'
import { imagePath, linkTo } from '@nextcloud/router'
import { loadState } from '@nextcloud/initial-state'

import { getSharingToken } from './token.js'
import { openMimetypes } from './mime.js'
import RichWorkspace from '../views/RichWorkspace.vue'
import store from '../store/index.js'

__webpack_nonce__ = window.btoa(OC.requestToken) // eslint-disable-line
__webpack_public_path__ = linkTo('text', 'js/') // eslint-disable-line

const FILE_ACTION_IDENTIFIER = 'Edit with text app'

const optimalPath = function(from, to) {
Expand Down

0 comments on commit d027cf1

Please sign in to comment.