PluginProbe
BeyondWords – AI audio for publishers / 4.0.2
BeyondWords – AI audio for publishers v4.0.2
7.2.0 7.1.0 trunk 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.1.0 4.1.1 4.1.2 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.3.0 4.4.0 4.5.0 4.5.1 4.6.0 4.6.1 4.6.2 All 44 releases
speechkit / src / Compatibility / Elementor / js / components / beyondwords / hooks / init-players-after-panel-open.js

init-players-after-panel-open.js in BeyondWords – AI audio for publishers 4.0.2, at src/Compatibility/Elementor/js/components/beyondwords/hooks/init-players-after-panel-open.js

29 lines 634 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* global $e */
2
3 // UI hook, fired after the command runs.
4 // Important: Available to run in the console but depends on $e.components example#1.
5
6 export class InitPlayersAfterPanelOpen extends $e.modules.hookUI.After {
7 getCommand() {
8 // Command to hook.
9 // This is a custom command which we fire when our panel is opened.
10 return 'beyondwords/panel-open';
11 }
12
13 getId() {
14 // Unique id for the hook.
15 return 'beyondwords-init-players-after-panel-open';
16 }
17
18 /*
19 * The actual hook logic.
20 */
21 apply() {
22 window.beyondwordsElementorCompatibility
23 .initPlayer()
24 .catch( ( err ) => {
25 console.error( err );
26 } );
27 }
28 }
29