Not crashing without configs anymore
This commit is contained in:
8
config/defaults/push.js
Normal file
8
config/defaults/push.js
Normal file
@@ -0,0 +1,8 @@
|
||||
try {
|
||||
module.exports = require("../env/push.config");
|
||||
} catch (e) {
|
||||
console.error(
|
||||
"You haven't defined push-parameters, you sure you want to continue without them?"
|
||||
);
|
||||
module.exports = { publicKey: false, privateKey: false, mailto: false };
|
||||
}
|
||||
Reference in New Issue
Block a user