mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Fix linting errors.
This commit is contained in:
parent
518910a54d
commit
21b5183d6a
2 changed files with 5 additions and 3 deletions
|
@ -105,7 +105,7 @@ Discourse.Utilities = {
|
|||
selectedText: function() {
|
||||
var html = '';
|
||||
|
||||
if (typeof window.getSelection != "undefined") {
|
||||
if (typeof window.getSelection !== "undefined") {
|
||||
var sel = window.getSelection();
|
||||
if (sel.rangeCount) {
|
||||
var container = document.createElement("div");
|
||||
|
@ -114,8 +114,8 @@ Discourse.Utilities = {
|
|||
}
|
||||
html = container.innerHTML;
|
||||
}
|
||||
} else if (typeof document.selection != "undefined") {
|
||||
if (document.selection.type == "Text") {
|
||||
} else if (typeof document.selection !== "undefined") {
|
||||
if (document.selection.type === "Text") {
|
||||
html = document.selection.createRange().htmlText;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
/*global assetPath:true */
|
||||
|
||||
/**
|
||||
This controller supports the pop up quote button
|
||||
|
||||
|
|
Loading…
Reference in a new issue