Skip to content

Commit

Permalink
fix slateContainer selector
Browse files Browse the repository at this point in the history
  • Loading branch information
edde746 committed Dec 18, 2023
1 parent 934cf59 commit 0bcee4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/canned-responses/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const managementModal = () => (
// Credits to yellowsink for this messagebar stuff
// https://github.com/yellowsink
const appendTextToMessagebar = (text) => {
const elem = document.querySelector('[class*="slateContainer-"]');
const elem = document.querySelector('[class*="slateContainer"]');
const fiber = getFiber(elem);
const editor = fiber.child.pendingProps.editor;

Expand Down
2 changes: 1 addition & 1 deletion plugins/gpt/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const loadingIndicator = () => (
// Credits to yellowsink for this messagebar stuff
// https://github.com/yellowsink
const appendTextToMessagebar = (text) => {
const elem = document.querySelector('[class*="slateContainer-"]');
const elem = document.querySelector('[class*="slateContainer"]');
const fiber = getFiber(elem);
const editor = fiber.child.pendingProps.editor;

Expand Down

0 comments on commit 0bcee4a

Please sign in to comment.