Chore: frontend infrastructure upgrade (#16420)
Co-authored-by: NFish <douxc512@gmail.com> Co-authored-by: zxhlyh <jasonapring2015@outlook.com> Co-authored-by: twwu <twwu@dify.ai> Co-authored-by: jZonG <jzongcode@gmail.com>
This commit is contained in:
@@ -24,7 +24,7 @@ function waitUntilTokenRefreshed() {
|
||||
const isRefreshingSignAvailable = function (delta: number) {
|
||||
const nowTime = new Date().getTime()
|
||||
const lastTime = globalThis.localStorage.getItem('last_refresh_time') || '0'
|
||||
return nowTime - parseInt(lastTime) <= delta
|
||||
return nowTime - Number.parseInt(lastTime) <= delta
|
||||
}
|
||||
|
||||
// only one request can send
|
||||
|
||||
Reference in New Issue
Block a user