Chromeless: Pass variables to the `evaluate()` context

Created on 10 Aug 2017  路  2Comments  路  Source: prisma-archive/chromeless

Is it possible to do that ?

discussion question

Most helpful comment

I've asked for so much help here, I hope I can finally be of use to someone.

.evaluate((var1, var2) => {
      // Do stuff here
    }, var1, var2)

You have to make sure to include the variables like above after the function {}.
Let me know if that's what you're trying to accomplish.

All 2 comments

I've asked for so much help here, I hope I can finally be of use to someone.

.evaluate((var1, var2) => {
      // Do stuff here
    }, var1, var2)

You have to make sure to include the variables like above after the function {}.
Let me know if that's what you're trying to accomplish.

Thanks @miles-collier, I'm going to close this for the time being with this: make sure your arguments are serializeable as this goes through a to a different runtime

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ovheurdrive picture ovheurdrive  路  5Comments

georgejor picture georgejor  路  5Comments

wmdmark picture wmdmark  路  5Comments

schickling picture schickling  路  3Comments

seangransee picture seangransee  路  5Comments