1
0
Fork 0
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:
keyser84 2017-03-02 22:31:39 +00:00 committed by Michael Keller
parent ff6b3e49be
commit c09416de51

View file

@ -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) {