fix the build
This commit is contained in:
parent
0b295150e7
commit
9bb7a3884b
|
@ -33,6 +33,12 @@ export default Ember.Controller.extend({
|
|||
|
||||
const selection = window.getSelection();
|
||||
|
||||
// no selections
|
||||
if (selection.isCollapsed) {
|
||||
this.set('buffer', '');
|
||||
return;
|
||||
}
|
||||
|
||||
// retrieve the selected range
|
||||
const range = selection.getRangeAt(0),
|
||||
cloned = range.cloneRange(),
|
||||
|
|
Loading…
Reference in New Issue