This commit is contained in:
@@ -18,9 +18,11 @@ function CodeMirrorDiffView(el, options) {
|
||||
const coords = this.cursorCoords(null, 'local');
|
||||
this.scrollTo(null,
|
||||
(coords.top + coords.bottom) / 2 - (this.getScrollerElement().clientHeight / 2));
|
||||
});
|
||||
this.init(el, options);
|
||||
};
|
||||
});
|
||||
this.init(el, options);
|
||||
};
|
||||
|
||||
CodeMirrorDiffView.CodeMirror = CodeMirror;
|
||||
|
||||
const trace = console.log;
|
||||
const traceTimeStart = console.time;
|
||||
|
||||
@@ -253,6 +253,8 @@ class Mergely {
|
||||
}
|
||||
}
|
||||
|
||||
Mergely.CodeMirror = CodeMirrorDiffView.CodeMirror;
|
||||
|
||||
window.Mergely = Mergely;
|
||||
|
||||
module.exports = Mergely;
|
||||
|
||||
Reference in New Issue
Block a user