Compare commits

...
2 Commits
Author SHA1 Message Date
fyears aa3aecb074 0.1.6 2021-11-27 00:51:01 +08:00
fyears 9128f9ed5b add support for ios 5-times click 2021-11-27 00:49:21 +08:00
4 changed files with 15 additions and 4 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{
"id": "obsidian-remotely-save",
"name": "Remotely Save",
"version": "0.1.5",
"version": "0.1.6",
"minAppVersion": "0.12.15",
"description": "Yet another unofficial plugin allowing users to sync notes between local device and the cloud service.",
"author": "fyears",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "obsidian-remotely-save",
"version": "0.1.5",
"version": "0.1.6",
"description": "This is yet another sync plugin for Obsidian app.",
"scripts": {
"dev": "webpack --mode development --watch",
+12 -1
View File
@@ -296,8 +296,18 @@ class RemotelySaveSettingTab extends PluginSettingTab {
// we need to create the div in advance of s3Div and webdavDiv
const serviceChooserDiv = generalDiv.createEl("div");
let clickChooserTimes = 0;
serviceChooserDiv.onClickEvent((x) => {
if (x.detail === 5) {
if (Platform.isIosApp) {
// downgrade the experiment
// because iOS doesn't support x.detail
clickChooserTimes += 1;
setTimeout(function () {
clickChooserTimes = 0;
}, 2000);
}
if ((Platform.isIosApp && clickChooserTimes === 5) || x.detail === 5) {
if (this.plugin.settings.serviceType === "webdav") {
new Notice(
"You've enabled hidden unstable experimental webdav support before. Nothing changes."
@@ -316,6 +326,7 @@ class RemotelySaveSettingTab extends PluginSettingTab {
);
}
}
x.preventDefault();
});
const s3Div = containerEl.createEl("div", { cls: "s3-hide" });
+1 -1
View File
@@ -1,3 +1,3 @@
{
"0.1.5": "0.12.15"
"0.1.6": "0.12.15"
}