fix wrong js
All checks were successful
Push image to registry / build-image (push) Successful in 4m36s

This commit is contained in:
2025-06-06 17:09:19 +02:00
parent ea2f21f8bf
commit e011eed4ca

View File

@ -332,8 +332,9 @@ class InstagramRepostJob extends BrowserJob implements ShouldBeUniqueUntilProces
// Add a caption
$captionText = $this->descriptionPipeline->process($videoInfo->getDescription());
$captionText = str_replace('"', '\"', $captionText);
$browser->script("
var el = document.querySelector('div[contenteditable]'), text = '{$captionText}';
var el = document.querySelector('div[contenteditable]'), text = \"{$captionText}\";
const dataTransfer = new DataTransfer();
dataTransfer.setData('text', text);
const event = new ClipboardEvent('paste', {