mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 13:30:33 +03:00
fix IE detection in protractor
This commit is contained in:
parent
0d2c557ebe
commit
50f65f7cfd
|
@ -13,9 +13,8 @@ let config = {
|
|||
// load APIs.guru list
|
||||
return loadJson('https://api.apis.guru/v2/list.json').then((list) => {
|
||||
global.apisGuruList = list;
|
||||
return browser.getCapabilities().then(function (cap) {
|
||||
browser.isIE = cap.browserName === 'internet explorer'
|
||||
|| (cap.caps_ && cap.caps_.browserName === 'internet explorer')
|
||||
return browser.getCapabilities().then(function (caps) {
|
||||
browser.isIE = caps.get('browserName') === 'internet explorer';
|
||||
});
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user