mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 20:54:00 -06:00
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();
|
||||
|
||||
// no selections
|
||||
if (selection.type !== "Range") return;
|
||||
if (selection.rangeCount === 0) return;
|
||||
|
||||
// retrieve the selected range
|
||||
var range = selection.getRangeAt(0),
|
||||
|
Loading…
Reference in New Issue
Block a user