disable-ion-engine.js 425 B

1234567891011121314
  1. states.push({
  2. id: "disable-ion-engine",
  3. button: "Disable Ion Engine",
  4. action: "Disengaging",
  5. duration: 300,
  6. show: () => isFlagEnabled('ion-engine-purchased') && isFlagEnabled('ion-engine-enabled'),
  7. requires: () => {
  8. if (!isFlagEnabled('ion-engine-enabled')) { errorMessage = "Ion Engine already deactivated"; }
  9. return isFlagEnabled('ion-engine-enabled');
  10. },
  11. run: () => {
  12. clearFlag('ion-engine-enabled');
  13. },
  14. });