Skip to content

Commit

Permalink
refactored code
Browse files Browse the repository at this point in the history
  • Loading branch information
shivalagisetty committed Apr 20, 2024
1 parent bb9aa09 commit ac209b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/translateCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function DialogSelect({ open, setOpen, highlihghtedContent , setG
<BootstrapDialog disableEscapeKeyDown open={open} onClose={handleClose}>
<DialogTitle>
<div ><b>Translate {!highlihghtedContent.length && 'the page'}</b></div>
{!highlihghtedContent.length && <span style={{ fontSize: '12px', marginLeft: "2px" }}>"Kindly select the language you wish to have this translated to."</span>}
{!highlihghtedContent.length && <span style={{ fontSize: '12px', marginLeft: "2px" }}>Kindly select the language you wish to have this translated to.</span>}
</DialogTitle>
<IconButton
aria-label="close"
Expand Down
1 change: 0 additions & 1 deletion src/page/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ function Paper() {
const doc = parser.parseFromString(content, "text/html");
const abody = doc.querySelector("body");
const innerT = abody.innerHTML;
console.log("test")
translateInnerHTML(innerT, glbTranslateTo).then(res => {
abody.innerHTML = res
document.querySelector("iframe").setAttribute('srcdoc', new XMLSerializer().serializeToString(doc))
Expand Down

0 comments on commit ac209b4

Please sign in to comment.