mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Use strings for highlight marker elements
This commit is contained in:
parent
2ec4328a90
commit
39b0cbd453
1 changed files with 2 additions and 2 deletions
|
|
@ -18,8 +18,8 @@ ShareExtension.prototype = {
|
|||
const range = sel.getRangeAt(0)
|
||||
const endMarker = document.createElement("span")
|
||||
const startMarker = document.createElement("span")
|
||||
endMarker.setAttribute("data-omnivore-highlight-end", true)
|
||||
startMarker.setAttribute("data-omnivore-highlight-start", true)
|
||||
endMarker.setAttribute("data-omnivore-highlight-end", "true")
|
||||
startMarker.setAttribute("data-omnivore-highlight-start", "true")
|
||||
|
||||
var container = document.createElement("div");
|
||||
for (var i = 0, len = sel.rangeCount; i < len; ++i) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue