Index: third_party/WebKit/Source/devtools/front_end/resources/AppManifestView.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/AppManifestView.js b/third_party/WebKit/Source/devtools/front_end/resources/AppManifestView.js |
index c99bed20ca50929251404344ea51f66a0b746397..97f7c84f982da70ac3cdcbe02876d07e01cea2c4 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/resources/AppManifestView.js |
+++ b/third_party/WebKit/Source/devtools/front_end/resources/AppManifestView.js |
@@ -19,7 +19,7 @@ |
toolbar.renderAsLinks(); |
var addToHomeScreen = |
new UI.ToolbarButton(Common.UIString('Add to homescreen'), undefined, Common.UIString('Add to homescreen')); |
- addToHomeScreen.addEventListener(UI.ToolbarButton.Events.Click, this._addToHomescreen, this); |
+ addToHomeScreen.addEventListener('click', this._addToHomescreen.bind(this)); |
toolbar.appendToolbarItem(addToHomeScreen); |
this._presentationSection = this._reportView.appendSection(Common.UIString('Presentation')); |
@@ -136,10 +136,7 @@ |
} |
} |
- /** |
- * @param {!Common.Event} event |
- */ |
- _addToHomescreen(event) { |
+ _addToHomescreen() { |
var target = SDK.targetManager.mainTarget(); |
if (target && target.hasBrowserCapability()) { |
target.pageAgent().requestAppBanner(); |