Fix duplication of error message

This commit is contained in:
Julia Radzhabova 2018-07-30 17:21:34 +03:00
parent 4e033860cf
commit afc6ede0bf

View file

@ -586,6 +586,7 @@ Common.Utils.isBrowserSupported = function() {
}; };
Common.Utils.showBrowserRestriction = function() { Common.Utils.showBrowserRestriction = function() {
if (document.getElementsByClassName && document.getElementsByClassName('app-error-panel').length>0) return;
var editor = (window.DE ? 'Document' : window.SSE ? 'Spreadsheet' : window.PE ? 'Presentation' : 'that'); var editor = (window.DE ? 'Document' : window.SSE ? 'Spreadsheet' : window.PE ? 'Presentation' : 'that');
var newDiv = document.createElement("div"); var newDiv = document.createElement("div");
newDiv.innerHTML = '<div class="app-error-panel">' + newDiv.innerHTML = '<div class="app-error-panel">' +