mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-02-10 18:05:16 +08:00
Merge pull request 'fix bug 77998' (#512) from fix/bug-77998 into fix/bug-74837
This commit is contained in:
@ -244,7 +244,6 @@ window.DialogConnect = function(params) {
|
||||
resolve({status:'skipped', response: {statusText: _url}});
|
||||
else {
|
||||
|
||||
const matches = (e) => (provider === 'onlyoffice' ? ['onlyoffice', 'teamlab'] : [provider]).some(p => (e.responseText || '').toLowerCase().includes(p) || portal.toLowerCase().includes(p));
|
||||
let fetchFuntion = $.ajax;
|
||||
if (window.AscSimpleRequest && window.AscSimpleRequest.createRequest)
|
||||
fetchFuntion = window.AscSimpleRequest.createRequest;
|
||||
@ -262,11 +261,6 @@ window.DialogConnect = function(params) {
|
||||
// if ( !_model.entryPage )
|
||||
// JSON.parse(e.responseText)
|
||||
|
||||
if (!matches(e)) {
|
||||
reject({status:'invalid portal', response:e});
|
||||
return;
|
||||
}
|
||||
|
||||
resolve({status:status, response:e});
|
||||
} catch (err) {
|
||||
e.status = 404;
|
||||
|
||||
Reference in New Issue
Block a user