namespace_browser: Fixing the demo work that broke
with blessing pattern change from / to :
Closes https://github.com/vanadium/issues/issues/975
Change-Id: I6fd0b7072d53380c842cda56583e1681b7d1d35d
diff --git a/src/services/sample-world/index.js b/src/services/sample-world/index.js
index aa8ad47..db0dbbc 100644
--- a/src/services/sample-world/index.js
+++ b/src/services/sample-world/index.js
@@ -73,11 +73,11 @@
*/
function getRootedName() {
return namespaceService.getAccountName().then(function(name) {
- // The account has a blessing of the form: dev.v.io/u/<email>/chrome
+ // The account has a blessing of the form: dev.v.io:u:<email>:chrome
// The object name to mount should be
// /ns.dev.v.io:8101/users/<email>/sample-world
- name = name.replace(/^dev.v.io\/u\//, 'users/');
- name = name.replace(/\/chrome$/, '');
+ name = name.replace(/^dev.v.io:u:/, 'users/');
+ name = name.replace(/:chrome$/, '');
return util.join('/ns.dev.v.io:8101', name, 'sample-world');
});
}