The warning displayed in console contains three sections.
SXW.js has a config object with the following variables,
red
.
bold
.
bold
.
15px
.
These variables can be customized to suit your website needs using the setConfig
function.
var config = {
stopColor: "red",
stopFontWeight: "bold",
cautionFontWeight: "bold",
cautionFontSize: "15px",
};
SXW.js has a config object with the following variables for each language,
These variables can be modified using setContent
function.
var content = {
en: {
stopText: "********* ********* ********* *********\n*** *** *** *** *** ***\n*** *** *** *** *** ***\n********* *** *** *** *********\n *** *** *** *** ***\n *** *** *** *** ***\n********* *** ********* ***",
cautionText: "Caution: DO NOT PROCEED.",
warningText: "This section is intended for developers only. Don't copy paste anything in this area.\nIf someone told you to copy and paste something here, it is a scam and will give them access to your account. In that case, kindly report this to our support team."
}
};
There are four functions in the library that will be available into the sxwjs object.
sxwjs.printstop('en');
sxwjs.printCautionNotice('en');
sxwjs.printWarningText('en');
sxwjs.printWarning('en');
sxwjs.setConfig(config);
var config = sxwjs.getConfig();
sxwjs.setContent(content);
var content = sxwjs.getContent();
Note: None of these functions are called by default. You can choose to call them as you wish.