Closed artfulrobot closed 2 years ago
This is related to: #271, #320 and #328.
Try to add await
like this:
var im = await this.mQuicktext.process_clipboard();
return im.replace('a', 'b');
var im = await this.mQuicktext.get_clipboard();
return im.replace('a', 'b');
@SamuelPlentz I get this error when I use await:
There was an error in your Quicktext script: MyMessage
SyntaxError: await is only valid in async functions, async generators and modules
Line 1: var im = await this.mQuicktext.process_clipboard();
(I'm on v 4.3 released 8 Aug. Tbird says there are no updates available)
Quicktext 5.2 and Thunderbird 102 in use here.
Ah, maybe Ubuntu's Thunderbird is out of date then, I'm on Tbird 91.
Confirmed working in Quicktext 5.2 and Thunderbird 102 ..
Then I want to run my script which wants to tweak what's on the clipboard.
I've tried:
and
But they both return empty strings. Help wanted please :-)