mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-22 05:07:05 +00:00
Put file deprecated into js directory
Request in Pull Request #569 Initial work by @olexs
This commit is contained in:
@@ -79,7 +79,7 @@ var App = function() {
|
||||
};
|
||||
|
||||
var checkDeprecatedOptions = function(userConfig) {
|
||||
var deprecatedOptions = require(__dirname + "/../config/deprecated.js");
|
||||
var deprecatedOptions = require(global.root_path + "/js/deprecated.js").configs;
|
||||
var usedDeprecated = [];
|
||||
|
||||
deprecatedOptions.forEach(function(option) {
|
||||
@@ -89,7 +89,11 @@ var App = function() {
|
||||
});
|
||||
|
||||
if (usedDeprecated.length > 0) {
|
||||
console.error("WARNING! Your config is using deprecated options: " + usedDeprecated.join(", ") + ". Check README and CHANGELOG for more up-to-date ways of getting the same functionality.");
|
||||
console.warn(
|
||||
"WARNING! Your config is using deprecated options: ",
|
||||
usedDeprecated.join(", "),
|
||||
". Check README and CHANGELOG for more up-to-date ways of getting the same functionality."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
14
js/deprecated.js
Normal file
14
js/deprecated.js
Normal file
@@ -0,0 +1,14 @@
|
||||
/* Magic Mirror Deprecated Config Options List
|
||||
*
|
||||
* By Michael Teeuw http://michaelteeuw.nl
|
||||
* MIT Licensed.
|
||||
*
|
||||
* Olex S. original idea this deprecated option
|
||||
*/
|
||||
|
||||
var deprecated = {
|
||||
configs: ["kioskmode"]
|
||||
};
|
||||
|
||||
/*************** DO NOT EDIT THE LINE BELOW ***************/
|
||||
if (typeof module !== "undefined") {module.exports = deprecated;}
|
Reference in New Issue
Block a user