File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 18
18
"@nextcloud/files" : " ^3.0.0" ,
19
19
"@nextcloud/l10n" : " ^2.2.0" ,
20
20
"@nextcloud/router" : " ^2.1.2" ,
21
+ "@nextcloud/sharing" : " ^0.2.3" ,
21
22
"jquery" : " ^3.7.0" ,
22
23
"path" : " ^0.12.7" ,
23
24
"process" : " ^0.11.10"
Original file line number Diff line number Diff line change 8
8
**/
9
9
10
10
import { generateUrl } from '@nextcloud/router'
11
+ import { getSharingToken } from '@nextcloud/sharing/public'
11
12
import * as $ from 'jquery' ;
12
13
import { translate as t } from '@nextcloud/l10n'
13
14
import { showError } from '@nextcloud/dialogs'
@@ -159,7 +160,7 @@ OCA.DrawIO = {
159
160
{
160
161
var fileName = $ ( '#filename' ) . val ( ) ;
161
162
var mimeType = $ ( '#mimetype' ) . val ( ) ;
162
- var sharingToken = $ ( '#sharingToken' ) . val ( ) ;
163
+ var sharingToken = getSharingToken ( ) ;
163
164
var extension = fileName . substr ( fileName . lastIndexOf ( '.' ) + 1 ) . toLowerCase ( ) ;
164
165
var isWB = String ( extension == 'dwb' ) ;
165
166
@@ -208,4 +209,4 @@ OCA.DrawIO = {
208
209
$ ( function ( )
209
210
{
210
211
OCA . DrawIO . init ( ) ;
211
- } ) ;
212
+ } ) ;
You can’t perform that action at this time.
0 commit comments