Skip to content

Commit

Permalink
Merge pull request #2890 from ONLYOFFICE/fix/se-embed-worksheet-selec…
Browse files Browse the repository at this point in the history
…tor-undefined-color

[se] embed: fix undefined color in worksheet selector
  • Loading branch information
JuliaRadzhabova authored Mar 19, 2024
2 parents 2f32ed3 + 1d7c67a commit 11517b4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/spreadsheeteditor/embed/js/ApplicationController.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,12 @@ SSE.ApplicationController = new(function(){

var styleAttr = "";
var color = api.asc_getWorksheetTabColor(i);

if (color) {
styleAttr = 'style="box-shadow: inset 0 4px 0 rgba({r}, {g}, {b}, {a})"'
.replace(/\{r}/, color.r)
.replace(/\{g}/, color.g)
.replace(/\{b}/, color.b)
.replace(/\{a}/, color.a);
styleAttr = 'style="box-shadow: inset 0 4px 0 rgb({r}, {g}, {b})"'
.replace(/\{r}/, color.get_r())
.replace(/\{g}/, color.get_g())
.replace(/\{b}/, color.get_b());
}

// escape html
Expand Down

0 comments on commit 11517b4

Please sign in to comment.