fix quote reply regression
This commit is contained in:
parent
850b042cab
commit
3860a9302b
|
@ -38,7 +38,7 @@ Discourse.QuoteButtonController = Discourse.Controller.extend({
|
||||||
var selection = window.getSelection();
|
var selection = window.getSelection();
|
||||||
|
|
||||||
// no selections
|
// no selections
|
||||||
if (selection.type !== "Range") return;
|
if (selection.rangeCount === 0) return;
|
||||||
|
|
||||||
// retrieve the selected range
|
// retrieve the selected range
|
||||||
var range = selection.getRangeAt(0),
|
var range = selection.getRangeAt(0),
|
||||||
|
|
Loading…
Reference in New Issue