mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
fix the build
This commit is contained in:
parent
0b295150e7
commit
9bb7a3884b
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue