Update whiteboard URLs again

This commit is contained in:
Travis Ralston 2020-12-28 20:51:21 -07:00
parent afd5fd3f90
commit 2e517ec2c2

View File

@ -17,6 +17,7 @@ export class WhiteboardWidgetComponent extends WidgetComponent {
constructor(private nameService: NameService, public translate: TranslateService) {
super(WIDGET_WHITEBOARD, "Whiteboard", "generic", translate, "whiteboard", "boardName");
}
protected OnWidgetsDiscovered(widgets: EditableWidget[]): void {
console.log(widgets);
for (const widget of widgets) {
@ -25,7 +26,7 @@ export class WhiteboardWidgetComponent extends WidgetComponent {
const boardName = parsedUrl.query["boardName"];
// Set the new URL so that it unpacks correctly
widget.url = `https://cloud13.de/?whiteboardid=${boardName}`;
widget.url = `https://cloud13.de/testwhiteboard/?whiteboardid=${boardName}`;
}
}
}
@ -33,7 +34,7 @@ export class WhiteboardWidgetComponent extends WidgetComponent {
protected OnNewWidgetPrepared(widget: EditableWidget): void {
const name = this.nameService.getHumanReadableName();
let template = "https://cloud13.de/?whiteboardid=$roomId_$boardName";
let template = "https://cloud13.de/testwhiteboard/?whiteboardid=$roomId_$boardName";
if (this.whiteBoardWidget.options && this.whiteBoardWidget.options.defaultUrl) {
template = this.whiteBoardWidget.options.defaultUrl;
}