Skip to content

Commit 3cfcdeb

Browse files
committed
Added config file to presence example
1 parent 438fc15 commit 3cfcdeb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

examples/presence/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
node_modules/
2+
config.js
3+

examples/presence/index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
const colors = require('colors/safe');
22

33
const Nimvelo = require('../../lib');
4+
const CONFIG = require('./config');
45

56
const myCustomerId = 5;
67

78
// Enter your API credentials here
89
const nimvelo = new Nimvelo({
9-
username: 'myUsername',
10-
password: 'myPassword',
10+
username: CONFIG.USERNAME,
11+
password: CONFIG.PASSWORD,
1112
});
1213

1314
// We'll use this to store the state of each extension

0 commit comments

Comments
 (0)