fix(core): getRequestToken import typo

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
pull/53534/head
skjnldsv 2025-06-17 09:24:39 +07:00 committed by Ferdinand Thiessen
parent 452b672b7b
commit a2039684ce
1 changed files with 2 additions and 2 deletions

@ -7,7 +7,7 @@
/* eslint-disable */
import $ from 'jquery'
import { getToken } from './requesttoken.ts'
import { getRequestToken } from './requesttoken.ts'
/**
* Create a new event source
@ -28,7 +28,7 @@ const OCEventSource = function(src, data) {
dataStr += name + '=' + encodeURIComponent(data[name]) + '&'
}
}
dataStr += 'requesttoken=' + encodeURIComponent(getToken())
dataStr += 'requesttoken=' + encodeURIComponent(getRequestToken())
if (!this.useFallBack && typeof EventSource !== 'undefined') {
joinChar = '&'
if (src.indexOf('?') === -1) {