Commit 99bd3f21 authored by Sean Hammond's avatar Sean Hammond

Merge pull request #2522 from hypothesis/fix-pdf-uris

Fix detection of PDF URIs
parents 5d37b53e 84867512
...@@ -18,7 +18,7 @@ Annotator.Plugin.BucketBar = require('./plugin/bucket-bar'); ...@@ -18,7 +18,7 @@ Annotator.Plugin.BucketBar = require('./plugin/bucket-bar');
Annotator.Plugin.Toolbar = require('./plugin/toolbar'); Annotator.Plugin.Toolbar = require('./plugin/toolbar');
// Document type plugins // Document type plugins
Annotator.Plugin.Pdf = require('./plugin/pdf'); Annotator.Plugin.PDF = require('./plugin/pdf');
require('../vendor/annotator.document'); // Does not export the plugin :( require('../vendor/annotator.document'); // Does not export the plugin :(
// Selection plugins // Selection plugins
......
...@@ -4,7 +4,7 @@ Sidebar = require('./sidebar') ...@@ -4,7 +4,7 @@ Sidebar = require('./sidebar')
module.exports = class PdfSidebar extends Sidebar module.exports = class PdfSidebar extends Sidebar
options: options:
TextSelection: {} TextSelection: {}
Pdf: {} PDF: {}
BucketBar: BucketBar:
container: '.annotator-frame' container: '.annotator-frame'
scrollables: ['#viewerContainer'] scrollables: ['#viewerContainer']
......
...@@ -2,7 +2,7 @@ extend = require('extend') ...@@ -2,7 +2,7 @@ extend = require('extend')
Annotator = require('annotator') Annotator = require('annotator')
module.exports = class Pdf extends Annotator.Plugin module.exports = class PDF extends Annotator.Plugin
documentLoaded: null documentLoaded: null
observer: null observer: null
pdfViewer: null pdfViewer: null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment