mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 12:55:14 +03:00
Replace invalid filesystem characters
This commit is contained in:
parent
ff6b3e49be
commit
c09416de51
1 changed files with 3 additions and 0 deletions
|
@ -168,6 +168,9 @@ function configuration_backup(callback) {
|
|||
|
||||
var filename = generateFilename(prefix, suffix);
|
||||
|
||||
// replace invalid filesystem characters
|
||||
now = now.replace(new RegExp(':', 'g'), '_');
|
||||
|
||||
// create or load the file
|
||||
chrome.fileSystem.chooseEntry({type: 'saveFile', suggestedName: filename, accepts: [{ extensions: [suffix] }]}, function (fileEntry) {
|
||||
if (chrome.runtime.lastError) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue