瀏覽代碼

Merge pull request #1326 from transloadit/fix/companion-storage

Companion Client: Use shared storage for logout as well
Artur Paikin 6 年之前
父節點
當前提交
d0b0901a26
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/@uppy/companion-client/src/Provider.js

+ 1 - 1
packages/@uppy/companion-client/src/Provider.js

@@ -53,7 +53,7 @@ module.exports = class Provider extends RequestClient {
   logout (redirect = location.href) {
   logout (redirect = location.href) {
     return this.get(`${this.id}/logout?redirect=${redirect}`)
     return this.get(`${this.id}/logout?redirect=${redirect}`)
       .then((res) => {
       .then((res) => {
-        this.storage.removeItem(this.tokenKey)
+        this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)
         return res
         return res
       })
       })
   }
   }