Skip to content

Commit

Permalink
🔀 Merge pull request #1608 from sadlowskij/v4/bug/global-alexa-onTask
Browse files Browse the repository at this point in the history
🔧 Make AlexaHandles.onTask global
  • Loading branch information
jankoenig authored Jan 18, 2024
2 parents d58cc17 + d0aabb4 commit 64d4e10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions platforms/platform-alexa/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,7 @@ Under the hood, `onTask()` as part of [`AlexaHandles`](https://github.com/jovote
```typescript
{
types: [InputType.Launch],
global: true,
if: (jovo: Jovo) => {
const task = jovo.$alexa?.task.getTask();
if (!task) return false;
Expand Down
1 change: 1 addition & 0 deletions platforms/platform-alexa/src/AlexaHandles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export class AlexaHandles {
static onTask(taskName: string, taskVersion?: number | string): HandleOptions {
return {
types: [InputType.Launch],
global: true,
if: (jovo: Jovo) => {
const task = jovo.$alexa?.task.getTask();
if (!task) return false;
Expand Down

0 comments on commit 64d4e10

Please sign in to comment.