From 9aedc5cd1c9e735dd2f014a89e09b1a1fafc35a3 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Wed, 18 Nov 2020 14:04:12 -0400 Subject: [PATCH] fix: code review --- ui/app/AppLayouts/Browser/JSDialogWindow.qml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/app/AppLayouts/Browser/JSDialogWindow.qml b/ui/app/AppLayouts/Browser/JSDialogWindow.qml index 5834069d88..8cffc5342d 100644 --- a/ui/app/AppLayouts/Browser/JSDialogWindow.qml +++ b/ui/app/AppLayouts/Browser/JSDialogWindow.qml @@ -20,10 +20,10 @@ ModalPopup { Component.onCompleted: { root.title = request.securityOrigin; message.text = request.message; - if(request.type == JavaScriptDialogRequest.DialogTypeAlert){ + if(request.type === JavaScriptDialogRequest.DialogTypeAlert){ cancelButton.visible = false; } - if(request.type == JavaScriptDialogRequest.DialogTypePrompt){ + if(request.type === JavaScriptDialogRequest.DialogTypePrompt){ prompt.text = request.defaultText; prompt.visible = true; svMessage.height = 75; @@ -59,7 +59,6 @@ ModalPopup { StyledButton { id: okButton anchors.right: parent.right - anchors.rightMargin: Style.current.smallPadding label: qsTr("Ok") anchors.bottom: parent.bottom onClicked: {