This commit is contained in:
fyears
2024-01-13 19:27:51 +08:00
parent 897e4fc4e5
commit 29a3c76b4e
6 changed files with 148 additions and 10 deletions
+6
View File
@@ -867,6 +867,10 @@ export default class RemotelySavePlugin extends Plugin {
if (this.settings.s3.remotePrefix === undefined) {
this.settings.s3.remotePrefix = "";
}
if (this.settings.s3.useAccurateMTime === undefined) {
// it causes money, so disable it by default
this.settings.s3.useAccurateMTime = false;
}
if (this.settings.ignorePaths === undefined) {
this.settings.ignorePaths = [];
}
@@ -884,6 +888,8 @@ export default class RemotelySavePlugin extends Plugin {
if (requireApiVersion(API_VER_ENSURE_REQURL_OK)) {
this.settings.s3.bypassCorsLocally = true; // deprecated as of 20240113
}
await this.saveSettings();
}
async checkIfPresetRulesFollowed() {