You've already forked joplin
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:
@ -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];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user