Skip to content

Commit

Permalink
rewriting if-true statements to if-not-false
Browse files Browse the repository at this point in the history
  • Loading branch information
nsimmonds committed Nov 6, 2012
1 parent bcb2769 commit d5405bf
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions mail.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,37 +52,32 @@ function clickHandleOWA() {

// create the context menu items

function createMenuGmail() {
if (localStorage["gmail"] === "true") {
if (localStorage["gmail"] != "false") {
chrome.contextMenus.create({
"title" : "Send via Gmail",
"contexts" :["link"],
"onclick" : clickHandleGmail()
});
};
};

function createMenuYahoo() {
if (localStorage["yahoo"] === "true") {

if (localStorage["yahoo"] != "false") {
chrome.contextMenus.create({
"title" : "Send via Yahoo!",
"contexts" : ["link"],
"onclick" : clickHandleYmail()
});
};
};

function createMenuLive() {
if (localStorage["live"] === "true") {
if (localStorage["live"] != "false") {
chrome.contextMenus.create({
"title" : "Send via Microsoft Live Mail",
"contexts" : ["link"],
"onclick" : clickHandleLmail()
});
};
};

if (localStorage["owa"] === "true") {
if (localStorage["owa"] != "false") {
chrome.contextMenus.create({
"title" : "Send via OWA",
"contexts" : ["link"],
Expand Down

0 comments on commit d5405bf

Please sign in to comment.