Merge pull request #16169 from Snuffleupagus/viewer-html-preprocessor-cleanup

Clean-up the pre-processor statements in `web/viewer.html`
This commit is contained in:
Tim van der Meij 2023-03-19 12:34:11 +01:00 committed by GitHub
commit 6b89e66bd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,9 +31,12 @@ See https://github.com/adobe-type-tools/cmap-resources
<!--#if MOZCENTRAL-->
<!--#include viewer-snippet-firefox-extension.html-->
<!--#endif-->
<!--#if CHROME-->
<!--#elif CHROME-->
<!--#include viewer-snippet-chrome-extension.html-->
<!--#elif MINIFIED-->
<!--#include viewer-snippet-minified.html-->
<!--#else-->
<!--#include viewer-snippet.html-->
<!--#endif-->
<!--#if MOZCENTRAL-->
@ -42,11 +45,13 @@ See https://github.com/adobe-type-tools/cmap-resources
<link rel="stylesheet" href="viewer.css">
<!--#endif-->
<!--#if !PRODUCTION-->
<!--#if MOZCENTRAL-->
<!--<script src="resource://pdf.js/web/viewer.js"></script>-->
<!--#elif !MINIFIED-->
<!--<script src="viewer.js"></script>-->
<!--#elif !PRODUCTION-->
<link rel="resource" type="application/l10n" href="locale/locale.properties">
<!--#endif-->
<!--#if !PRODUCTION-->
<script defer src="../node_modules/es-module-shims/dist/es-module-shims.js"></script>
<script type="importmap-shim">
{
@ -77,19 +82,6 @@ See https://github.com/adobe-type-tools/cmap-resources
<script src="viewer.js" type="module-shim"></script>
<!--#endif-->
<!--#if (GENERIC && !MINIFIED) -->
<!--#include viewer-snippet.html-->
<!--#endif-->
<!--#if MINIFIED-->
<!--#include viewer-snippet-minified.html-->
<!--#elif MOZCENTRAL-->
<!--<script src="resource://pdf.js/web/viewer.js"></script>-->
<!--#else-->
<!--<script src="viewer.js"></script>-->
<!--#endif-->
</head>
<body tabindex="1">