1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2024-10-17 09:42:45 +02:00
TweetDuck/resources/Content/tweetdeck/globals/reload_browser.js

18 lines
253 B
JavaScript

let isReloading = false;
/**
* Reloads the website with memory cleanup if available.
*/
export function reloadBrowser() {
if (isReloading) {
return;
}
if ("gc" in window) {
window.gc();
}
isReloading = true;
window.location.reload();
}