mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Fix linting errors.
This commit is contained in:
@@ -105,7 +105,7 @@ Discourse.Utilities = {
|
|||||||
selectedText: function() {
|
selectedText: function() {
|
||||||
var html = '';
|
var html = '';
|
||||||
|
|
||||||
if (typeof window.getSelection != "undefined") {
|
if (typeof window.getSelection !== "undefined") {
|
||||||
var sel = window.getSelection();
|
var sel = window.getSelection();
|
||||||
if (sel.rangeCount) {
|
if (sel.rangeCount) {
|
||||||
var container = document.createElement("div");
|
var container = document.createElement("div");
|
||||||
@@ -114,8 +114,8 @@ Discourse.Utilities = {
|
|||||||
}
|
}
|
||||||
html = container.innerHTML;
|
html = container.innerHTML;
|
||||||
}
|
}
|
||||||
} else if (typeof document.selection != "undefined") {
|
} else if (typeof document.selection !== "undefined") {
|
||||||
if (document.selection.type == "Text") {
|
if (document.selection.type === "Text") {
|
||||||
html = document.selection.createRange().htmlText;
|
html = document.selection.createRange().htmlText;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
/*global assetPath:true */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This controller supports the pop up quote button
|
This controller supports the pop up quote button
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user