diff --git a/test.html b/test.html index 9cadf2e1f..aea4ec5ba 100644 --- a/test.html +++ b/test.html @@ -46,13 +46,16 @@ function queryParams() { } var canvas, numPages, pageDisplay, pageNum; -function load() { +function load(userInput) { canvas = document.getElementById("canvas"); canvas.mozOpaque = true; pageDisplay = document.getElementById("pageNumber"); infoDisplay = document.getElementById("info"); pageNum = parseInt(queryParams().page) || 1; - fileName = queryParams().file || "compressed.tracemonkey-pldi-09.pdf"; + fileName = userInput; + if(!userInput){ + fileName = queryParams().file || "compressed.tracemonkey-pldi-09.pdf"; + } open(fileName); } @@ -132,6 +135,9 @@ function gotoPage(num) {