Adding explanatory comment for safe_to_embed

This commit is contained in:
Tomasz Drwięga 2016-05-31 21:56:41 +02:00
parent ae1bcd6a5b
commit 67421fc69e

View File

@ -40,6 +40,9 @@ pub fn all_endpoints() -> Endpoints {
let mut pages = Endpoints::new();
pages.insert("proxy".into(), ProxyPac::boxed());
// Home page needs to be safe embed
// because we use Cross-Origin LocalStorage.
// TODO [ToDr] Account naming should be moved to parity.
pages.insert("home".into(), Box::new(
PageEndpoint::new_safe_to_embed(parity_dapps_builtins::App::default())
));