(name, obj)
| 169 | |
| 170 | export class RemoteCDMManager { |
| 171 | static async saveRemoteCDM(name, obj) { |
| 172 | const result = await AsyncLocalStorage.getStorage(['remote_cdms']); |
| 173 | const array = result.remote_cdms === undefined ? [] : result.remote_cdms; |
| 174 | array.push(name); |
| 175 | await AsyncLocalStorage.setStorage({ remote_cdms: array }); |
| 176 | await AsyncLocalStorage.setStorage({ [name]: obj }); |
| 177 | } |
| 178 | |
| 179 | static async loadRemoteCDM(name) { |
| 180 | const result = await AsyncLocalStorage.getStorage([name]); |
no test coverage detected