Skip to content

Commit

Permalink
fix minimization problems
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyLuzyanin committed Jan 31, 2025
1 parent 69060b5 commit 8a7d5ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions common/Native/native.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,9 @@ function NativeCreateApi(options)
Api.setOpenedAt(options["documentLayout"]["openedAt"]);
if (options && options["documentLayout"] && undefined !== options["documentLayout"]["headingsColor"])
{
let rgba = AscCommon.RgbaTextToRGBA(options["documentLayout"]["headingsColor"]);
if (AscWord && AscWord.setDefaultHeadingColor)
AscWord.setDefaultHeadingColor(rgba.R, rgba.G, rgba.B);
let rgba = window["AscCommon"]["RgbaTextToRGBA"](options["documentLayout"]["headingsColor"]);
if (window["AscWord"] && window["AscWord"]["setDefaultHeadingColor"])
window["AscWord"]["setDefaultHeadingColor"](rgba.R, rgba.G, rgba.B);
}
break;
}
Expand Down
4 changes: 2 additions & 2 deletions common/skin.js
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ window['AscCommon'].RgbaHexToRGBA = function(color)

return ret;
};
window['AscCommon'].RgbaTextToRgbaHex = function(color)
window['AscCommon']['RgbaTextToRgbaHex'] = window['AscCommon'].RgbaTextToRgbaHex = function(color)
{
var toHex = function (c) {
var res = Number(c).toString(16);
Expand Down Expand Up @@ -619,7 +619,7 @@ window['AscCommon'].RgbaTextToRgbaHex = function(color)

return "#" + toHex(r) + toHex(g) + toHex(b);
};
window['AscCommon'].RgbaTextToRGBA = function(rgbStr)
window['AscCommon']['RgbaTextToRGBA'] = window['AscCommon'].RgbaTextToRGBA = function(rgbStr)
{
try
{
Expand Down
2 changes: 1 addition & 1 deletion word/Editor/Styles/default-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -1248,5 +1248,5 @@
AscWord.DEFAULT_FONT = DEFAULT_FONT;
AscWord.getDefaultStyleObject = getDefaultStyleObject;
AscWord.getDefaultStyleName = getDefaultStyleName;
AscWord.setDefaultHeadingColor = setDefaultHeadingColor;
AscWord["setDefaultHeadingColor"] = AscWord.setDefaultHeadingColor = setDefaultHeadingColor;
})(window);

0 comments on commit 8a7d5ce

Please sign in to comment.