diff --git a/client/components/codeEditor/codeEditor.jsx b/client/components/codeEditor/codeEditor.jsx
index c5cf669bd..25bf4f88e 100644
--- a/client/components/codeEditor/codeEditor.jsx
+++ b/client/components/codeEditor/codeEditor.jsx
@@ -308,7 +308,7 @@ const CodeEditor = forwardRef(
view.dispatch({
effects : themeCompartment.reconfigure(themeExtension),
});
- }, [editorTheme]);
+ }, [editorTheme, tab]);
useEffect(()=>{
//rebuild syntax highlight when changing tab or renderer
diff --git a/client/homebrew/brewRenderer/safeHTML.js b/client/homebrew/brewRenderer/safeHTML.js
index d9438b663..ca2e59d5f 100644
--- a/client/homebrew/brewRenderer/safeHTML.js
+++ b/client/homebrew/brewRenderer/safeHTML.js
@@ -32,12 +32,12 @@ function safeHTML(htmlString) {
return;
}
// Check remaining elements for blacklisted attributes
- for (const attribute of element.attributes){
+ [...element.attributes].forEach((attribute)=>{
if(blacklistAttrs.some((test)=>{return test(attribute);})) {
- element.removeAttribute(attribute.localName);
- break;
+ element.removeAttribute(attribute.name);
+ return;
};
- };
+ });
});
return div.innerHTML;
diff --git a/client/homebrew/brewRenderer/toolBar/toolBar.jsx b/client/homebrew/brewRenderer/toolBar/toolBar.jsx
index 16c89ea59..0f158e0e6 100644
--- a/client/homebrew/brewRenderer/toolBar/toolBar.jsx
+++ b/client/homebrew/brewRenderer/toolBar/toolBar.jsx
@@ -99,11 +99,16 @@ const ToolBar = ({ displayOptions, onDisplayOptionsChange, visiblePages, totalPa
return (
-
+
+
+
Options