/* Description:
 *   pushes a default URL to screens when /reset is hit
 *
 * Dependencies:
 *   settings
 *
 * Configuration:
 *   defaultUrl
 *
 * Author:
 *    lonnen, mythmon, potch
 */

module.exports = function (corsica) {
  var settings = corsica.settings.setup('reset', {
    defaultUrl: ['/default.html', 'http://xkcd.com', 'http://potch.me'],
  });

  var urlIndex = 0;

  corsica.on('reset', function(content) {
    return settings.get()
      .then(function (settings) {
        content.type = 'url';
        content.url = settings.defaultUrl[urlIndex];
        urlIndex = (urlIndex + 1) % settings.defaultUrl.length;
        corsica.sendMessage('content', content);
        return content;
      });
  });
};

@@ -328,27 +328,8 @@
 com'
-, 'http://potch.me'
 %5D,%0A 

Update reset.js