Skip to content

Commit

Permalink
Don't load IFTTT routes if we can't
Browse files Browse the repository at this point in the history
  • Loading branch information
werebus committed May 18, 2024
1 parent 490193b commit 1a9fca3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ var system = require('../system'),
setSessionTimezone = require('./setTimezone'),
androidRegistrationService = require('./androidRegistrationService'),
appleRegistrationService = require('./appleRegistrationService'),
ifttt_routes = require('./ifttt'),
redis = require('../redis-helper');

if (!system.isIFTTTEnabled()) {
var ifttt_routes = require('./ifttt');
}
/**
* Constructs the Routes object.
*
Expand Down

0 comments on commit 1a9fca3

Please sign in to comment.