質問

How do I tell programatically in SDK2 if I am running in debug (local) mode (not installed in Rally)?

I was looking for something in Rally.app.Context but didn't see anything obvious

役に立ちましたか?

解決

There is nothing in the context for that purpose, as far as I know, but here is a trick that can tell you if it is running in Rally, or outside:

 if (window.parent.Rally.alm) {
     console.log('inside');
  }
  else{
     console.log('outside');
  }
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top