diff --git a/lib/app.js b/lib/app.js index 2b9c1ef5..9cb08e77 100644 --- a/lib/app.js +++ b/lib/app.js @@ -156,11 +156,11 @@ app.get('/:bin/latest/edit', binHandler.redirectToLatest); // Quick and easy urls for test - allows me to do /rem/last on my mobile devices app.get('/:name/last?/:quiet(quiet)?', binHandler.getLatestForUser, spike.getStream, binHandler.getBinPreview); app.get('/:name/last/edit', binHandler.getLatestForUser, binHandler.getBin); -app.get('/:name/last/live', binHandler.getLatestForUser, binHandler.getLiveEditBin); +app.get('/:name/last/watch', binHandler.getLatestForUser, binHandler.getLiveEditBin); // Edit app.get('/:bin/:rev?/edit', binHandler.getBin); -app.get('/:bin/:rev?/live', binHandler.getLiveEditBin); +app.get('/:bin/:rev?/watch', binHandler.getLiveEditBin); // Save app.post('/save', binHandler.createBin); diff --git a/public/js/spike.js b/public/js/spike.js index 6216b949..fd554fd8 100644 --- a/public/js/spike.js +++ b/public/js/spike.js @@ -152,8 +152,8 @@ function codecastStream() { } -var id = location.pathname.replace(/\/preview.*$/, '').replace(/\/edit.*$/, ''), - codecasting = location.pathname.indexOf('edit/live') !== -1; +var id = location.pathname.replace(/\/preview.*$/, '').replace(/\/edit.*$/, '').replace(/\/watch.*$/, ''), + codecasting = location.pathname.indexOf('/watch') !== -1; queue = [], msgType = '', useSS = false, diff --git a/views/index.html b/views/index.html index 50f8e006..7a54efe7 100644 --- a/views/index.html +++ b/views/index.html @@ -306,7 +306,7 @@ Include alerts, prompts & confirm boxes">Run with JS