Fix several style issues

This commit is contained in:
Jay Kamat 2018-01-17 17:02:53 -05:00
parent c5e688f26c
commit ffda82170d
No known key found for this signature in database
GPG Key ID: 5D2E399600F4F7B5
6 changed files with 12 additions and 16 deletions

View File

@ -285,10 +285,10 @@ window._qutebrowser.webelem = (function() {
const frame_elem = call_if_frame(elem,
(frame) => serialize_elem(frame.document.activeElement, frame));
if (frame_elem === null) {
return serialize_elem(elem);
if (frame_elem !== null) {
return frame_elem;
}
return frame_elem;
return serialize_elem(elem);
};
funcs.find_at_pos = (x, y) => {
@ -306,10 +306,10 @@ window._qutebrowser.webelem = (function() {
y - frame_offset_rect.top), frame);
});
if (frame_elem === null) {
return serialize_elem(elem);
if (frame_elem !== null) {
return frame_elem;
}
return frame_elem;
return serialize_elem(elem);
};
// Function for returning a selection to python (so we can click it)

View File

@ -1,8 +1,6 @@
<!DOCTYPE html>
<!--
target: hello.txt
-->
<!-- target: hello.txt -->
<html>
<head>

View File

@ -1,13 +1,11 @@
<!DOCTYPE html>
<!--
target: hello.txt
-->
<!-- target: hello.txt -->
<html>
<head>
<meta charset="utf-8">
<title>Link wrapped across multiple lines</title>
<title>Button link wrapped across multiple lines</title>
</head>
<body>
<div style="width: 20em;">

View File

@ -3,7 +3,7 @@
<html>
<head>
<meta charset="utf-8">
<title>Hinting inside an iframe</title>
<title>Hinting a button inside an iframe</title>
</head>
<body>
<iframe style="margin: 50px;" src="/data/hints/html/wrapped_button.html"></iframe>

View File

@ -3,7 +3,7 @@
<html>
<head>
<meta charset="utf-8">
<title>Hinting inside an iframe</title>
<title>Hinting an input field inside an iframe</title>
</head>
<body>
<iframe style="margin: 50px;" src="/data/hints/input.html"></iframe>

View File

@ -3,7 +3,7 @@
<html>
<head>
<meta charset="utf-8">
<title>Hinting inside an iframe</title>
<title>Searching inside an iframe</title>
</head>
<body>
<iframe style="margin: 50px;" src="/data/search.html"></iframe>