ScottieMc
ScottieMc

Reputation: 686

How to get the current version number of a Trigger.io app

Is there a way to get the app config settings from inside my Trigger.io app without having to repeat the values in the parameters module? Specifically, I'm looking to grab the version number.

Upvotes: 1

Views: 130

Answers (2)

sandstrom
sandstrom

Reputation: 15092

It used to be available under forge.config in Javascript, but isn't anymore. For a while it wasn't available under this key (around v. 1.2). It has since reappeared.

Upvotes: 0

prototype14
prototype14

Reputation: 305

I've had success (today) with using forge.config.version

Example:

alert(forge.config.version)

This returned the value I had entered into the app's configuration.

Upvotes: 4

Related Questions