mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 17:44:52 -04:00
Added clientonly script
Added clientonly script to have server and client run at different locations
This commit is contained in:
parent
8893df118e
commit
66f93ee541
8 changed files with 118 additions and 6 deletions
|
@ -62,6 +62,9 @@ var Server = function(config, callback) {
|
|||
}
|
||||
html = html.replace("#CONFIG_FILE#", configFile);
|
||||
|
||||
// Set a temporary cookie called "config" to the JSON encoded config object
|
||||
res.cookie("config", JSON.stringify(config));
|
||||
|
||||
res.send(html);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue