Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
fix: disable Context Menu fails #13
Browse files Browse the repository at this point in the history
  • Loading branch information
zimocode committed Aug 18, 2018
1 parent 2dd3033 commit 21713d5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions change.log
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"log": [
{
"ver":"6.1.1108.836",
"ver":"6.1.1108.837",
"date":"2018.08.18",
"content":[
"fix bug: issues@github: #2,#3,#14,#15"
"fix bug: issues@github: #2,#3,#13,#14,#15"
]
},
{
Expand Down
7 changes: 7 additions & 0 deletions js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,13 @@ var suo={
suo.bgChange(e);
}
if(e.target.classList.contains("change-checkbox")){
switch(e.target.dataset.confele){
case"fnctm"://when set disable contextmenu, remove all.
if(!e.target.checked&&chrome.contextMenus){
chrome.contextMenus.removeAll();
}
break;
}
//fnswitch drg/sdrg
if(e.target.dataset.confele=="fndrg"){
var doms=document.querySelector("input[data-confele=fnsdrg]");
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"minimum_chrome_version": "22",
"name": "smartUp Gestures(Beta)",
"short_name":"smartUp",
"version": "6.1.1108.836",
"version": "6.1.1108.837",
"description": "__MSG_ext_des__",
"default_locale": "en",
"author":"zimo",
Expand Down

0 comments on commit 21713d5

Please sign in to comment.