Index: chrome/browser/resources/md_bookmarks/app.js |
diff --git a/chrome/browser/resources/md_bookmarks/app.js b/chrome/browser/resources/md_bookmarks/app.js |
index ed59f5e4024dd59f92311b4abbaa0e0092f2b278..a9723f10fae31797f346ba62140e921992fa2f1b 100644 |
--- a/chrome/browser/resources/md_bookmarks/app.js |
+++ b/chrome/browser/resources/md_bookmarks/app.js |
@@ -86,7 +86,8 @@ Polymer({ |
splitterTarget.style.width = |
window.localStorage[LOCAL_STORAGE_TREE_WIDTH_KEY]; |
} |
- this.sidebarWidth_ = splitterTarget.getComputedStyleValue('width'); |
+ this.sidebarWidth_ = |
+ /** @type {string} */ (getComputedStyle(splitterTarget).width); |
splitter.addEventListener('resize', function(e) { |
window.localStorage[LOCAL_STORAGE_TREE_WIDTH_KEY] = |
@@ -100,7 +101,8 @@ Polymer({ |
/** @private */ |
updateSidebarWidth_: function() { |
- this.sidebarWidth_ = this.$.sidebar.getComputedStyleValue('width'); |
+ this.sidebarWidth_ = |
+ /** @type {string} */ (getComputedStyle(this.$.sidebar).width); |
}, |
/** @private */ |