Created
July 5, 2015 22:00
-
-
Save jewel-andraia/9a226f6bc5fcf290d4da to your computer and use it in GitHub Desktop.
Export custom RES settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Object.getOwnPropertyNames(modules) | |
.filter(function(moduleID) { | |
var options = (options = modules[moduleID]) && options.options; | |
if (options && Object.getOwnPropertyNames(options).some(function(key) { | |
var option = options[key]; return option.length || option.value != option.default; | |
})) { | |
return true; | |
} | |
}) | |
.forEach(function(moduleID) { | |
console.log("RESStorage update", moduleID); | |
console.log(JSON.stringify(modules[moduleID].options)); | |
}) |
Author
jewel-andraia
commented
Jul 5, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment