App Protocol? (app://my_app/views/login.html)


I am testing out atom-shell to see if I can get my nw app ported over and I had a quick question about URLs. In nw I can use app://my_app/views/login.html or something similar. Seen here:

Anything similar right now in atom-shell?


Is this what you need?


It is. Thank you. I have implemented it to work from the root of my app.

var protocol = require('protocol');
protocol.registerProtocol('atom', function(request) {
  var path = request.url.substr(7);
  return new protocol.RequestFileJob(__dirname + '/' + path);