Skip to content

Commit 86a3032

Browse files
authored
Merge pull request #5 from backdrop-contrib/prism-1.30.0
Issue #4: Update to Prismjs 1.30.0
2 parents 750e57f + 5d935a6 commit 86a3032

File tree

5 files changed

+3
-3
lines changed

5 files changed

+3
-3
lines changed

libraries/prismjs/components/prism-core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ var Prism = (function (_self) {
222222
if (typeof document === 'undefined') {
223223
return null;
224224
}
225-
if ('currentScript' in document && 1 < 2 /* hack to trip TS' flow analysis */) {
225+
if (document.currentScript && document.currentScript.tagName === 'SCRIPT' && 1 < 2 /* hack to trip TS' flow analysis */) {
226226
return /** @type {any} */ (document.currentScript);
227227
}
228228

libraries/prismjs/components/prism-core.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libraries/prismjs/components/prism-n4js.js

100644100755
File mode changed.

libraries/prismjs/components/prism-n4js.min.js

100644100755
File mode changed.

tinymce_codehighlight.module

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function tinymce_codehighlight_library_info() {
1717
$libraries['Prism.js_local'] = array(
1818
'title' => 'Prism.js (local)',
1919
'website' => 'https://prismjs.com/',
20-
'version' => '1.29.0',
20+
'version' => '1.30.0',
2121
'js' => array(
2222
$path . '/components/prism-core.min.js' => $js_options,
2323
$path . '/plugins/autoloader/prism-autoloader.min.js' => $js_options,

0 commit comments

Comments
 (0)