Fix for ie11

This commit is contained in:
Julia Radzhabova
2024-06-18 14:42:31 +03:00
parent 66ff8276c4
commit 52ea55744b
2 changed files with 7 additions and 6 deletions

View File

@ -72,7 +72,8 @@
top: 0;
left: 0;
right: 70%;
background-color: #F1F1F1;
background-color: #FFFFFF;
color: #444444;
overflow: hidden;
border-right-color: #CBCBCB;
@ -352,9 +353,9 @@
<div id="menu_functions" style="display: none;">
<div class="menu_header">
<label class="i18n header">Custom Functions</label>
<button id="create_functions" title="Add custom function" class="btn-text-default header_btn" style="border: none !important;">
<div id="create_functions" title="Add custom function" class="btn-text-default header_btn" style="border: none !important;">
<img class="img_plus" src="./resources/img/plus_dark.svg" style="width: 20px; height: 20px;" />
</button>
</div>
</div>
<div id="menu_content_functions" class="menu_padding"></div>
</div>

View File

@ -1089,9 +1089,9 @@ ace.config.loadModule('ace/ext/html_beautify', function (beautify) {
imgSrc += '_dark.svg'
}
let imgArr = document.querySelectorAll('.img_plus');
imgArr.forEach(function(img){
img.setAttribute('src', imgSrc);
});
for (let i = 0; i < imgArr.length; i++) {
imgArr[i].setAttribute('src', imgSrc);
}
var styleTheme = document.createElement('style');
styleTheme.type = 'text/css';
styleTheme.innerHTML = rules;