We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02f5614 commit 129eeceCopy full SHA for 129eece
src/main.js
@@ -116,7 +116,7 @@ function addToolbarButton(toolbar) {
116
}
117
118
// Find the toolbar group to add our button to
119
- const isNewToolbar = toolbar.classList.contains('Toolbar-module__toolbar--CkIKP');
+ const isNewToolbar = toolbar.getAttribute('aria-label') === 'Formatting tools';
120
let toolbarGroup;
121
122
if (isNewToolbar) {
@@ -277,6 +277,7 @@ function init() {
277
278
// Watch for new toolbars
279
observe(toolbarSelector, (toolbar) => {
280
+ debugLog('New toolbar found:', toolbar);
281
addToolbarButton(toolbar);
282
});
283
0 commit comments