1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-30 23:44:55 +02:00

All: Add support for application plugins (#3257)

This commit is contained in:
Laurent
2020-10-09 18:35:46 +01:00
committed by GitHub
parent 833fb1264f
commit fe41d37f8f
804 changed files with 95622 additions and 5307 deletions

View File

@ -1,4 +1,5 @@
import { Dirnames } from './utils/types';
import shim from 'lib/shim';
const JoplinError = require('lib/JoplinError');
const { time } = require('lib/time-utils');
@ -277,7 +278,7 @@ export default class LockHandler {
inProgress: false,
};
this.refreshTimers_[handle].id = setInterval(async () => {
this.refreshTimers_[handle].id = shim.setInterval(async () => {
if (this.refreshTimers_[handle].inProgress) return;
const defer = () => {
@ -310,7 +311,7 @@ export default class LockHandler {
if (error) {
if (this.refreshTimers_[handle]) {
clearInterval(this.refreshTimers_[handle].id);
shim.clearInterval(this.refreshTimers_[handle].id);
delete this.refreshTimers_[handle];
}
errorHandler(error);
@ -331,7 +332,7 @@ export default class LockHandler {
return;
}
clearInterval(this.refreshTimers_[handle].id);
shim.clearInterval(this.refreshTimers_[handle].id);
delete this.refreshTimers_[handle];
}