mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Revert Preferences to their previous values, when writing to storage failed
This patch fixes an old inconsistency, when using `BasePreferences.{reset, set}`, where the internal Preference values would be kept even if writing them to storage failed.
This commit is contained in:
parent
25d7420035
commit
3274972768
2 changed files with 18 additions and 7 deletions
|
@ -21,8 +21,7 @@ import { GenericScripting } from "./generic_scripting.js";
|
|||
|
||||
if (typeof PDFJSDev !== "undefined" && !PDFJSDev.test("GENERIC")) {
|
||||
throw new Error(
|
||||
'Module "pdfjs-web/genericcom" shall not be used outside ' +
|
||||
"GENERIC build."
|
||||
'Module "pdfjs-web/genericcom" shall not be used outside GENERIC build.'
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue