Move Presentation Mode related code from viewer.js to its own file
This commit is contained in:
parent
17a953c7b3
commit
bfc66626a0
6 changed files with 198 additions and 170 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue