fix wrong js
All checks were successful
Push image to registry / build-image (push) Successful in 4m36s
All checks were successful
Push image to registry / build-image (push) Successful in 4m36s
This commit is contained in:
@ -332,8 +332,9 @@ class InstagramRepostJob extends BrowserJob implements ShouldBeUniqueUntilProces
|
|||||||
|
|
||||||
// Add a caption
|
// Add a caption
|
||||||
$captionText = $this->descriptionPipeline->process($videoInfo->getDescription());
|
$captionText = $this->descriptionPipeline->process($videoInfo->getDescription());
|
||||||
|
$captionText = str_replace('"', '\"', $captionText);
|
||||||
$browser->script("
|
$browser->script("
|
||||||
var el = document.querySelector('div[contenteditable]'), text = '{$captionText}';
|
var el = document.querySelector('div[contenteditable]'), text = \"{$captionText}\";
|
||||||
const dataTransfer = new DataTransfer();
|
const dataTransfer = new DataTransfer();
|
||||||
dataTransfer.setData('text', text);
|
dataTransfer.setData('text', text);
|
||||||
const event = new ClipboardEvent('paste', {
|
const event = new ClipboardEvent('paste', {
|
||||||
|
Reference in New Issue
Block a user