mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 22:11:39 +08:00
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…
x
Reference in New Issue
Block a user