Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit a4b47bd

Browse files
author
Rayhan Arayilakath
committed
Warn if No Initialization Variable
1 parent d3b7669 commit a4b47bd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
let replapi = require('./src')
1+
let replapi = require('./src');
22

33
module.exports = function(initVariables) {
4-
global.initVariables = initVariables
4+
if(initVariables) {
5+
global.initVariables = initVariables;
6+
} else {
7+
console.warn('[WARN]: ReplAPI.it Initilization Variables not found!')
8+
}
9+
510
return {
611
User: replapi.User,
712
Post: replapi.Post,

0 commit comments

Comments
 (0)