Jonas Jenwald
0af42f1ca7
Rename the `ViewHistory` localStorage (and sessionStorage) key from `database` to `pdfjs.history`, and migrate existing data on read (issue 7760)
...
For consistency, I also renamed the `FIREFOX/MOZCENTRAL` sessionStorage key, but given that sessionStorage is a lot less permanent than localStorage it didn't seem necessary to migrate any existing values.
Fixes 7760.
9 years ago
Yury Delendik
0576c9c6c6
Replaces all preprocessor directives with PDFJSDev calls.
9 years ago
Yury Delendik
006e8fb59d
Introduces UMD headers to the web/ folder.
9 years ago
Tim van der Meij
b8aaa24257
Convert all `node make` instances to `gulp`
9 years ago
Tim van der Meij
df81b832bb
Remove unused variables
10 years ago
Manas
a2ba1b8189
Uses editorconfig to maintain consistent coding styles
...
Removes the following as they unnecessary
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
10 years ago
Tim van der Meij
55870788e5
Make the view history cache size configurable during initialization
10 years ago
Tim van der Meij
7681def0de
Move VIEW_HISTORY_MEMORY constant to `view_history.js`
...
Currently this constant is present in `viewer.js`, but it is not used there at all. Instead, it is used in `view_history.js` where we have a global for it. We might as well move the constant to `view_history.js` as that is the only place where it is used, thereby removing a global and an unused constant from `viewer.js`.
10 years ago
Yury Delendik
f3c3b1fc2d
Removes B2G preprocessing directives.
10 years ago
Samuel Chantaraud
37c3641fad
Added Promise.catch
...
Fixed Promise so it rejects on uncaught exception
Catch possible rejection on ViewHistory.setMultiple
11 years ago
Jonas Jenwald
ec50aa4e8c
Refactor how the database is read in ViewHistory
11 years ago
Jonas Jenwald
69eafaa58f
Add support for setting multiple values at once in ViewHistory
11 years ago
Jonas Jenwald
48399a3ec7
Add writeToStorage method to ViewHistory
11 years ago
Jonas Jenwald
447d115ec1
[Firefox] Workaround for sessionStorage error when the preference network.cookie.lifetimePolicy is set to 1 (bug 1000777)
11 years ago
Yury Delendik
b39f0c311c
Refactors history and how the database is stored
11 years ago
Yury Delendik
5bf3e44e30
Introduces LegacyPromise; polyfills DOM Promise
11 years ago
Jonas Jenwald
4bd9767112
Rename 'Settings' to 'ViewHistory'
12 years ago
Jonas Jenwald
43b0b66ada
Fix coding style and improve comment in settings.js
12 years ago
Jonas Jenwald
d6ab0c61e8
Move Settings from viewer.js to its own file
12 years ago