blob: 22ba7ae5ebc4466c5343b73a90400c7cd093b577 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
module.exports = function(routes) {
routes.addRoute('/error', handleErrorRoute);
};
module.exports.createUrl = function() {
return '#/error';
};
function handleErrorRoute(state) {
// Set the page to error
state.navigation.pageKey.set('error');
state.viewport.title.set('Error');
}