Commit 80587150 authored by Vildravn's avatar Vildravn
Browse files

Add message for unsupported widget sizes

parent 7818c8ce
......@@ -104,12 +104,7 @@ async function createWidget(size) {
widget.backgroundColor = colors.bg;
if (size == 'small') {
await buildTextDisplay(widget, "calling quest", callings);
widget.url = 'https://www.wowhead.com/#tiw-switcher-region';
}
else if (size == 'medium') {
if (size == 'medium') {
const wrapperStack = widget.addStack();
wrapperStack.layoutHorizontally();
widget.addSpacer();
......@@ -128,7 +123,9 @@ async function createWidget(size) {
rightColumn.addSpacer(20);
await buildTextDisplay(rightColumn, "world boss", worldBoss);
} else {
widget.setPadding(5, 0, 5, 0);
const text = widget.addText(`${size} widget is currently not supported.`);
text.textColor = textStyles.header.color;
text.font = textStyles.header.font;
}
return widget;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment