mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
fix error when trying to resolve changed file twice
This commit is contained in:
parent
2b4dad9b31
commit
dc4e241193
@ -331,9 +331,11 @@ define(function(require, exports, module) {
|
||||
}
|
||||
|
||||
function updateChangedPath(err, path, data) {
|
||||
if (!changedPaths[path])
|
||||
return;
|
||||
var tab = changedPaths[path].tab || tabManager.findTab(path);
|
||||
if (!tab)
|
||||
return changedPaths[path] && changedPaths[path].resolve();
|
||||
return changedPaths[path].resolve();
|
||||
var doc = tab.document;
|
||||
doc.setBookmarkedValue(data, true);
|
||||
doc.meta.timestamp = Date.now() - settings.timeOffset;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user