| Index: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js
|
| index d196701a38740d6631013eb197401af79e611da1..fcb502af37cf99534cc3318cbe81412eb294605e 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js
|
| @@ -452,7 +452,7 @@ Emulation.DeviceModeView = class extends UI.VBox {
|
| * @param {!Element} canvas
|
| */
|
| _saveScreenshot(canvas) {
|
| - var url = this._model.target() && this._model.target().inspectedURL();
|
| + var url = this._model.inspectedURL();
|
| var fileName = url ? url.trimURL().removeURLFragment() : '';
|
| if (this._model.type() === Emulation.DeviceModeModel.Type.Device)
|
| fileName += Common.UIString('(%s)', this._model.device().title);
|
|
|