Make code backwards compatible

This commit is contained in:
Ylva Selling
2022-08-25 16:43:30 -04:00
parent 2778d3d4ac
commit 12be6d5ab7

View File

@@ -236,7 +236,7 @@ void WwtCommunicator::setBorderRadius(double radius) {
void WwtCommunicator::updateBorderColor() const {
std::string script = fmt::format(
"document.body.style.backgroundColor = 'rgb({},{},{})';",
"setBackgroundColor('rgb({},{},{})');",
_borderColor.x, _borderColor.y, _borderColor.z
);
executeJavascript(script);