mirror of
https://github.com/chylex/TweetDuck.git
synced 2024-11-23 17:42:46 +01:00
13 lines
405 B
JavaScript
13 lines
405 B
JavaScript
import { TD } from "../../api/td.js";
|
|
import { checkPropertyExists, noop } from "../../api/utils.js";
|
|
|
|
function isSupported() {
|
|
return checkPropertyExists(TD, "controller", "columnManager", "getAll");
|
|
}
|
|
|
|
function reloadColumnsImpl() {
|
|
Object.values(TD.controller.columnManager.getAll()).forEach(column => column.reloadTweets());
|
|
}
|
|
|
|
export const reloadColumns = isSupported() ? reloadColumnsImpl : noop;
|