Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Unified Diff: lib/src/prism/plugins/highlight-keywords/prism-highlight-keywords.js

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/src/prism/plugins/highlight-keywords/prism-highlight-keywords.js
diff --git a/lib/src/prism/plugins/highlight-keywords/prism-highlight-keywords.js b/lib/src/prism/plugins/highlight-keywords/prism-highlight-keywords.js
index 58c9ad93ba51a544fd0aa515b31680be192e6fd5..32b281227311ad755a3bd5f6dfcafdec3502693f 100644
--- a/lib/src/prism/plugins/highlight-keywords/prism-highlight-keywords.js
+++ b/lib/src/prism/plugins/highlight-keywords/prism-highlight-keywords.js
@@ -1,6 +1,9 @@
(function(){
-if (!self.Prism) {
+if (
+ typeof self !== 'undefined' && !self.Prism ||
+ typeof global !== 'undefined' && !global.Prism
+) {
return;
}

Powered by Google App Engine
This is Rietveld 408576698