@@ -3,6 +3,8 @@ import Environment from 'ringcentral-integration/modules/Environment';
33import isBlank from 'ringcentral-integration/lib/isBlank' ;
44import { Module } from 'ringcentral-integration/lib/di' ;
55
6+ import hackSend from '../../lib/hackSend' ;
7+
68import {
79 getAppKeyReducer ,
810 getAppSecretReducer ,
@@ -71,15 +73,25 @@ export default class DemoEnvironment extends Environment {
7173 appSecret : this . appSecret
7274 }
7375 ) ;
74- this . _client . service = new SDK ( config ) ;
76+ if ( ! ! window . ActiveXObject || 'ActiveXObject' in window ) {
77+ // if the browser is IE , no cache
78+ this . _client . service = hackSend ( new SDK ( config ) ) ;
79+ } else {
80+ this . _client . service = new SDK ( config ) ;
81+ }
7582 }
7683 }
7784
7885 _changeEnvironment ( enabled , server , appKey , appSecret ) {
7986 const newConfig = this . _getSdkConfig (
8087 { enabled, server, appKey, appSecret }
8188 ) ;
82- this . _client . service = new SDK ( newConfig ) ;
89+ if ( ! ! window . ActiveXObject || 'ActiveXObject' in window ) {
90+ // if the browser is IE , no cache
91+ this . _client . service = hackSend ( new SDK ( newConfig ) ) ;
92+ } else {
93+ this . _client . service = new SDK ( newConfig ) ;
94+ }
8395 }
8496
8597 async setData ( { server, recordingHost, enabled, appKey, appSecret } ) {
0 commit comments