Skip to content

e is not defined when use executeAsyncFunction #30

@matamune94

Description

@matamune94

I make error :

Error: Error thrown in execution script: e is not defined.
Stack: ReferenceError: e is not defined
    at <anonymous>:4:44
    at <anonymous>:4:76
    at <anonymous>:20:3
    at Object.chrome.tabs.executeAsyncFunction

my code:

      try {
        const scriptToExecute = async function() {
          return 'hi'
        }
        const results = await chrome.tabs.executeAsyncFunction(window.tabs[0].id, scriptToExecute)
      } catch (err) {
        console.log(err)
      }

Any have idea ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions