mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fixed plugin change observer silent error.
I'd have thought the error would make some noise, but no.
This commit is contained in:
@@ -187,9 +187,9 @@ function Plugin(obj) {
|
||||
} else if (change.name == 'isDirty') {
|
||||
/* Update dirty counts. */
|
||||
if (change.object[change.name]) {
|
||||
document.getElementById('dirtyPluginNo').textContent = ++parseInt(document.getElementById('dirtyPluginNo').textContent, 10);
|
||||
document.getElementById('dirtyPluginNo').textContent = parseInt(document.getElementById('dirtyPluginNo').textContent, 10) + 1;
|
||||
} else {
|
||||
document.getElementById('dirtyPluginNo').textContent = --parseInt(document.getElementById('dirtyPluginNo').textContent, 10);
|
||||
document.getElementById('dirtyPluginNo').textContent = parseInt(document.getElementById('dirtyPluginNo').textContent, 10) - 1;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user