Skip to content

Commit

Permalink
Make right click open dictionary directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Vopaaz committed Feb 6, 2020
1 parent 56c435f commit 4d9cfb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vocab-vanquisher",
"version": "0.2.2",
"version": "0.3.0",
"private": true,
"description": "Vocabulary builder simulating using a textbook and tear-it-down methodology.",
"author": {
Expand Down
10 changes: 3 additions & 7 deletions src/components/VocabTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,12 @@ export default {
methods: {
onContextMenu: function(item, index, event) {
event.preventDefault();
this.selecting = item.vocabulary;
this.menu.popup({ window: remote.getCurrentWindow() });
},
openLookupWindow: function() {
let self = this
let selecting = item.vocabulary;
window.open(
"https://cn.bing.com/dict/search?q=" +
self.selecting +
selecting +
"&qs=n&form=Z9LH5&sp=-1&pq=" +
self.selecting,
selecting,
"_blank",
"nodeIntegration=no"
);
Expand Down

0 comments on commit 4d9cfb9

Please sign in to comment.