Browse Source
"text/javascript" is not a correct MIME type (the correct one is "application/javascript") but it's not even needed; all browsers default to the correct type and treat it as executable JS when type is ommited. Since not all browsers recognize the "application/javascript" MIME type the only way to both stay compliant and to support all popular browsers is to omit the type. It's also shorter this way.
13 changed files with 171 additions and 171 deletions
@ -1,5 +1,5 @@ |
|||||||
<!-- This snippet is used in the Chromium extension (included from viewer.html) --> |
<!-- This snippet is used in the Chromium extension (included from viewer.html) --> |
||||||
<base href="/content/web/"> |
<base href="/content/web/"> |
||||||
<link rel="resource" type="application/l10n" href="locale/locale.properties"> |
<link rel="resource" type="application/l10n" href="locale/locale.properties"> |
||||||
<script type="text/javascript" src="l10n.js"></script> |
<script src="l10n.js"></script> |
||||||
<script type="text/javascript" src="../build/pdf.js"></script> |
<script src="../build/pdf.js"></script> |
||||||
|
@ -1,4 +1,4 @@ |
|||||||
<!-- This snippet is used in the Firefox extension (included from viewer.html) --> |
<!-- This snippet is used in the Firefox extension (included from viewer.html) --> |
||||||
<base href="resource://pdf.js/web/" /> |
<base href="resource://pdf.js/web/" /> |
||||||
<script type="text/javascript" src="l10n.js"></script> |
<script src="l10n.js"></script> |
||||||
<script type="text/javascript" src="../build/pdf.js"></script> |
<script src="../build/pdf.js"></script> |
||||||
|
@ -1,3 +1,3 @@ |
|||||||
<!-- This snippet is used in production (included from viewer.html) --> |
<!-- This snippet is used in production (included from viewer.html) --> |
||||||
<link rel="resource" type="application/l10n" href="locale/locale.properties"/> |
<link rel="resource" type="application/l10n" href="locale/locale.properties"/> |
||||||
<script type="text/javascript" src="pdf.viewer.js"></script> |
<script src="pdf.viewer.js"></script> |
||||||
|
@ -1,4 +1,4 @@ |
|||||||
<!-- This snippet is used in production (included from viewer.html) --> |
<!-- This snippet is used in production (included from viewer.html) --> |
||||||
<link rel="resource" type="application/l10n" href="locale/locale.properties"/> |
<link rel="resource" type="application/l10n" href="locale/locale.properties"/> |
||||||
<script type="text/javascript" src="l10n.js"></script> |
<script src="l10n.js"></script> |
||||||
<script type="text/javascript" src="../build/pdf.js"></script> |
<script src="../build/pdf.js"></script> |
||||||
|
Loading…
Reference in new issue