Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test cases as possible urls in browse tab #79

Merged
merged 3 commits into from Mar 12, 2018
Merged

Conversation

zuphilip
Copy link
Collaborator

See #77.

Moreover, the browser url will stay now also when a
new translator is opened and thereby all items in the
menulist are removed.
@zuphilip zuphilip changed the title WIP: Add test cases as possible urls in browse tab Add test cases as possible urls in browse tab Mar 12, 2018
//Show URL of active tab
document.querySelectorAll("textbox.browser-url").forEach(elem => elem.value = doc.location.href);
// Show URL of active tab
document.querySelectorAll("menulist.browser-url").forEach(elem => elem.value = doc.location.href);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this a querySelectorAll(), anyway? Isn't that just because we used to have more than one of the URL bar? If there's only one now, this could just be document.getElementById('browser-url').value = … (after moving browser-url to the id).

@zuphilip
Copy link
Collaborator Author

Good comment! Please have a look at the new version.

@dstillman dstillman merged commit 043f469 into master Mar 12, 2018
@zuphilip zuphilip deleted the dropdown-browse-url branch March 12, 2018 21:45
@zuphilip zuphilip added this to the v3.3.2 milestone May 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants