Adds UMD header to pdf.js and pdf.worker.js files.

This commit is contained in:
Yury Delendik 2015-12-23 17:46:08 -06:00
parent e8db825512
commit cbbb9bb82d
6 changed files with 77 additions and 39 deletions

View file

@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* globals global */
/* globals global, pdfjsVersion, pdfjsBuild */
'use strict';
@ -39,6 +39,13 @@
globalScope.PDFJS = {};
}
if (typeof pdfjsVersion !== 'undefined') {
globalScope.PDFJS.version = pdfjsVersion;
}
if (typeof pdfjsVersion !== 'undefined') {
globalScope.PDFJS.build = pdfjsBuild;
}
globalScope.PDFJS.pdfBug = false;
exports.globalScope = globalScope;