mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 12:55:14 +03:00
Merge pull request #2678 from limonspb/presets_cache_fix
Presets fix: remove cache for fetch
This commit is contained in:
commit
460b7b51d3
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ class PresetsRepoIndexed {
|
|||
}
|
||||
|
||||
loadIndex() {
|
||||
return fetch(this._urlRaw + "index.json")
|
||||
return fetch(this._urlRaw + "index.json", {cache: "no-cache"})
|
||||
.then(res => res.json())
|
||||
.then(out => this._index = out);
|
||||
}
|
||||
|
@ -205,7 +205,7 @@ class PresetsRepoIndexed {
|
|||
|
||||
_loadPresetText(fullUrl) {
|
||||
return new Promise((resolve, reject) => {
|
||||
fetch(fullUrl)
|
||||
fetch(fullUrl, {cache: "no-cache"})
|
||||
.then(res => res.text())
|
||||
.then(text => resolve(text))
|
||||
.catch(err => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue