File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -54,25 +54,3 @@ var PDFViewer = {
54
54
}
55
55
56
56
ipc . on ( 'openPDF' , PDFViewer . handlePDFOpenEvent )
57
-
58
- /*
59
- migrate legacy bookmarked PDFs to the new viewer URL
60
- TODO remove this in a future version
61
- */
62
-
63
- var legacyPDFViewerURL = 'file://' + __dirname + '/pdfjs/web/viewer.html?url='
64
-
65
- db . transaction ( 'rw' , db . places , function ( ) {
66
- db . places . where ( 'url' ) . startsWith ( legacyPDFViewerURL ) . each ( function ( item ) {
67
- var oldItemURL = item . url
68
-
69
- var pdfBaseURL = oldItemURL . replace ( legacyPDFViewerURL , '' )
70
- var newViewerURL = PDFViewer . url . base + PDFViewer . url . queryString . replace ( '%l' , encodeURIComponent ( pdfBaseURL ) )
71
-
72
- item . url = newViewerURL
73
-
74
- db . places . put ( item ) . then ( function ( ) {
75
- db . places . where ( 'url' ) . equals ( oldItemURL ) . delete ( )
76
- } )
77
- } )
78
- } )
You can’t perform that action at this time.
0 commit comments