Skip to content

Commit

Permalink
Fix [Chrome 80.0.3955.4] hints broken - Element.createShadowRoot depr…
Browse files Browse the repository at this point in the history
…ecated 1995eaton#716
  • Loading branch information
heronghua committed Sep 23, 2022
1 parent 283ec27 commit be64b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content_scripts/hints.js
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ Hints.create = function(type, multi) {
main.id = 'cVim-link-container';
main.top = document.scrollingElement.scrollTop + 'px';
main.left = document.scrollingElement.scrollLeft + 'px';
Hints.shadowDOM = main.createShadowRoot();
Hints.shadowDOM = main.attachShadow({mode: 'open'});

try {
document.lastChild.appendChild(main);
Expand Down

0 comments on commit be64b20

Please sign in to comment.