Skip to content

Commit

Permalink
Fix Bug 66260
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Jan 30, 2024
1 parent 7c7e4bf commit 5d0489e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
6 changes: 5 additions & 1 deletion apps/documenteditor/main/app/controller/DocumentHolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,11 @@ define([
buttons: ['yes', 'no'],
primary: 'yes',
callback: function(btn) {
(btn == 'yes') && window.open(url);
try {
(btn == 'yes') && window.open(url);
} catch (err) {
err && console.log(err.stack);
}
}
});
}
Expand Down
6 changes: 5 additions & 1 deletion apps/pdfeditor/main/app/controller/DocumentHolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,11 @@ define([
buttons: ['yes', 'no'],
primary: 'yes',
callback: function(btn) {
(btn == 'yes') && window.open(url);
try {
(btn == 'yes') && window.open(url);
} catch (err) {
err && console.log(err.stack);
}
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,11 @@ define([
buttons: ['yes', 'no'],
primary: 'yes',
callback: function(btn) {
(btn == 'yes') && window.open(url);
try {
(btn == 'yes') && window.open(url);
} catch (err) {
err && console.log(err.stack);
}
}
});
}
Expand Down
6 changes: 5 additions & 1 deletion apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -2195,7 +2195,11 @@ define([
buttons: ['yes', 'no'],
primary: 'yes',
callback: function(btn) {
(btn == 'yes') && window.open(url, '_blank');
try {
(btn == 'yes') && window.open(url, '_blank');
} catch (err) {
err && console.log(err.stack);
}
}
});
},
Expand Down

0 comments on commit 5d0489e

Please sign in to comment.