Skip to content

Commit a203968

Browse files
skjnldsvsusnux
authored andcommitted
fix(core): getRequestToken import typo
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent 452b672 commit a203968

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/OC/eventsource.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/* eslint-disable */
88
import $ from 'jquery'
99

10-
import { getToken } from './requesttoken.ts'
10+
import { getRequestToken } from './requesttoken.ts'
1111

1212
/**
1313
* Create a new event source
@@ -28,7 +28,7 @@ const OCEventSource = function(src, data) {
2828
dataStr += name + '=' + encodeURIComponent(data[name]) + '&'
2929
}
3030
}
31-
dataStr += 'requesttoken=' + encodeURIComponent(getToken())
31+
dataStr += 'requesttoken=' + encodeURIComponent(getRequestToken())
3232
if (!this.useFallBack && typeof EventSource !== 'undefined') {
3333
joinChar = '&'
3434
if (src.indexOf('?') === -1) {

0 commit comments

Comments
 (0)