mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 10:01:39 -05:00
Add command to reload all pages at once
This commit is contained in:
parent
8802a7f265
commit
c236ecdf7a
1 changed files with 8 additions and 0 deletions
|
@ -211,6 +211,14 @@ export async function reload(n = 1, hard = false) {
|
|||
tabstoreload.map(n => browser.tabs.reload(n, reloadProperties))
|
||||
}
|
||||
|
||||
/** Reloads all tabs, bypassing the cache if hard is set to true */
|
||||
//#background
|
||||
export async function reloadall(hard = false){
|
||||
let tabs = await browser.tabs.query({})
|
||||
let reloadprops = {bypassCache: hard}
|
||||
tabs.map(tab => browser.tabs.reload(tab.id, reloadprops))
|
||||
}
|
||||
|
||||
/** Reload the next n tabs, starting with activeTab. bypass cache for all */
|
||||
//#background
|
||||
export async function reloadhard(n = 1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue