mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Introduces UMD headers to the web/ folder.
This commit is contained in:
parent
1c253e6e1d
commit
006e8fb59d
39 changed files with 836 additions and 281 deletions
|
@ -12,11 +12,21 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* globals DEFAULT_PREFERENCES, Promise */
|
||||
/* globals DEFAULT_PREFERENCES, chrome */
|
||||
|
||||
'use strict';
|
||||
|
||||
//#include default_preferences.js
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define('pdfjs-web/preferences', ['exports'], factory);
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
factory(exports);
|
||||
} else {
|
||||
factory((root.pdfjsWebPreferences = {}));
|
||||
}
|
||||
}(this, function (exports) {
|
||||
|
||||
//#include $ROOT/web/default_preferences.js
|
||||
|
||||
/**
|
||||
* Preferences - Utility for storing persistent settings.
|
||||
|
@ -209,3 +219,6 @@ Preferences._readFromStorage = function (prefObj) {
|
|||
});
|
||||
};
|
||||
//#endif
|
||||
|
||||
exports.Preferences = Preferences;
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue