Move Presentation Mode related code from viewer.js to its own file

This commit is contained in:
Jonas Jenwald 2013-10-01 23:11:46 +02:00
parent 17a953c7b3
commit bfc66626a0
6 changed files with 198 additions and 170 deletions

View file

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* globals PDFJS, PDFView */
/* globals PDFJS, PDFView, PresentationMode */
'use strict';
@ -264,7 +264,7 @@ var PDFHistory = {
return null;
}
var params = { hash: this.currentBookmark, page: this.currentPage };
if (PDFView.isPresentationMode) {
if (PresentationMode.active) {
params.hash = null;
}
return params;