Remove unused function
This commit is contained in:
parent
ca76ba5cf1
commit
bb5184bc50
1 changed files with 0 additions and 12 deletions
|
@ -494,16 +494,4 @@ export default class WidgetUtils {
|
||||||
IntegrationManagers.sharedInstance().getPrimaryManager().open(room, 'type_' + app.type, app.id);
|
IntegrationManagers.sharedInstance().getPrimaryManager().open(room, 'type_' + app.type, app.id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static snapshotWidget(app) {
|
|
||||||
console.log("Requesting widget snapshot");
|
|
||||||
ActiveWidgetStore.getWidgetMessaging(app.id).getScreenshot().catch((err) => {
|
|
||||||
console.error("Failed to get screenshot", err);
|
|
||||||
}).then((screenshot) => {
|
|
||||||
dis.dispatch({
|
|
||||||
action: 'picture_snapshot',
|
|
||||||
file: screenshot,
|
|
||||||
}, true);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue