About a week ago, some sort of update has broken my web extension, bbCode for Web Extensions (bbCodeWebEx).
While doing something like adding tags to a piece of text still works just fine in compose mode (though it serves no purpose there, because you cannot add tags directly), in HTML editing mode, it is not picking up the selected text.
Specifically, if I highlight a text, and right click to add a tag, this line of code is supposed to, and has until about a week ago, get the value of the selected text:
let currentSelection = window.getSelection().toString().trim();
Gives me the selected text in the compose window, and on other websites, but it gives me <empty string>
in the HTML editing window.
Anyone know what might be causing this or if there might be a work around?
Also, am I the only one who thinks that chasing Google’s regular changes that brake stuff is a major PITA?