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

Unified Diff: tracing/tracing/ui/base/polymer_preload.html

Issue 2959503002: Enable Polymer.Settings.useNativeShadow on the dashboard. (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « third_party/flot/jquery.flot.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/base/polymer_preload.html
diff --git a/tracing/tracing/ui/base/polymer_preload.html b/tracing/tracing/ui/base/polymer_preload.html
index 4c21ef991ca0d1fb9cc1c3a9715928fd09317b4f..1e9191cfda7976b06575876231b9980626586bce 100644
--- a/tracing/tracing/ui/base/polymer_preload.html
+++ b/tracing/tracing/ui/base/polymer_preload.html
@@ -8,9 +8,10 @@ found in the LICENSE file.
'use strict';
// Force Polymer into native shadowDom mode
-if (window.Polymer) {
+if (!window.Polymer) {
+ window.Polymer = {};
+ window.Polymer.dom = 'shadow';
+} else if (!window.Polymer.Settings.useNativeShadow) {
throw new Error('Cannot proceed. Polymer already present.');
eakuefner 2017/06/26 16:43:25 Can you update this error message? Polymer already
}
-window.Polymer = {};
-window.Polymer.dom = 'shadow';
</script>
« no previous file with comments | « third_party/flot/jquery.flot.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698