diff options
author | nobita4176 | 2015-10-25 00:37:21 +0900 |
---|---|---|
committer | nobita4176 | 2015-10-25 01:52:13 +0900 |
commit | e62db9cc5866db6e54cf11334da113b416b14a26 (patch) | |
tree | 1c8be76fe18644a8e636d18ce5e87834c9711f5c | |
parent | 24689d2ad32b5729afeef3f1c7a3af0fd42ba8d3 (diff) | |
download | vimperator-plugins-e62db9cc5866db6e54cf11334da113b416b14a26.tar.bz2 |
Follow the spec change of PDF.js
-rw-r--r-- | PDF.js.js | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -123,7 +123,7 @@ let INFO = xml` ['n'], 'Next page', function (count) { - content.window.wrappedJSObject.PDFView.page += (count > 0 ? count : 1); + content.wrappedJSObject.PDFViewerApplication.page += (count > 0 ? count : 1); } ); @@ -131,7 +131,7 @@ let INFO = xml` ['p'], 'Previous page', function (count) { - content.window.wrappedJSObject.PDFView.page -= (count > 0 ? count : 1); + content.wrappedJSObject.PDFViewerApplication.page -= (count > 0 ? count : 1); } ); @@ -140,9 +140,9 @@ let INFO = xml` 'Go to page top or N page.', function (count) { if (count > 0) - content.window.wrappedJSObject.PDFView.page = count; + content.wrappedJSObject.PDFViewerApplication.page = count; else - content.window.wrappedJSObject.PDFView.page = 1; + content.wrappedJSObject.PDFViewerApplication.page = 1; } ); @@ -195,7 +195,7 @@ let INFO = xml` let os = getOutline(); buffer.followLink(os[parseInt(index[1], 10)], liberator.CURRENT_TAB); } else { - content.window.wrappedJSObject.PDFView.page = parseInt(args.literalArg, 10); + content.wrappedJSObject.PDFViewerApplication.page = parseInt(args.literalArg, 10); } }, { @@ -227,7 +227,7 @@ let INFO = xml` ['z[oom]'], 'Zoom', function (args) { - content.window.wrappedJSObject.PDFView.parseScale(args.literalArg); + content.wrappedJSObject.PDFViewerApplication.setScale(args.literalArg); }, { literal: 0, |