Implement back/forward buttons (fix #180)

This commit is contained in:
Feross Aboukhadijeh
2016-03-20 22:54:51 -07:00
parent 42ea368c68
commit ce2a9ceb11
5 changed files with 100 additions and 29 deletions

View File

@@ -2,6 +2,7 @@ var os = require('os')
var path = require('path')
var config = require('../config')
var LocationHistory = require('./lib/location-history')
module.exports = {
/*
@@ -11,9 +12,9 @@ module.exports = {
client: null, /* the WebTorrent client */
server: null, /* local WebTorrent-to-HTTP server */
prev: {}, /* used for state diffing in updateElectron() */
url: 'home',
location: new LocationHistory(),
window: {
bounds: null, /* x y width height */
bounds: null, /* {x, y, width, height } */
isFocused: true,
isFullScreen: false,
title: config.APP_NAME /* current window title */