Skip to content

Commit

Permalink
Ready for first review.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjhansen committed Jun 29, 2018
1 parent 3fa6969 commit f7b9e16
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion content/clouseau.xul
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<toolbarpalette id="MailToolbarPalette">
<toolbarbutton id="clouseau-button"
class="clouseau"
label="Clouseau"
label="Report"
type="button"
oncommand="Clouseau.report();"
/>
Expand Down
16 changes: 8 additions & 8 deletions content/overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var Clouseau = {
try {
var configFile = Clouseau.dirService.get("ProfD",
Components.interfaces.nsIFile);
configFile.append("clouseau.json")
configFile.append("malware-reporter.json")

if (configFile.exists() && configFile.isReadable()) {
var str = {};
Expand Down Expand Up @@ -75,8 +75,8 @@ var Clouseau = {
}

if (null == Clouseau.config) {
Clouseau.notify("No Clouseau config",
"No configuration file was found for Clouseau.")
Clouseau.notify("No config",
"No configuration file was found for the Malware Reporter.")
document.getElementById("clouseau-button").disabled = true;
} else {
document.getElementById("clouseau-button").disabled = false;
Expand Down Expand Up @@ -111,8 +111,8 @@ var Clouseau = {
// we shouldn't ever get here, but on the off chance something
// weird happens...
document.getElementById("clouseau-button").disabled = true;
Clouseau.notify("Clouseau error",
"Please configure Clouseau and restart.");
Clouseau.notify("Configuration error",
"Please configure the Malware Reporter and restart.");
return;
}

Expand Down Expand Up @@ -142,14 +142,14 @@ var Clouseau = {
sendKind);
}
if (1 == count) {
Clouseau.notify("Clouseau",
Clouseau.notify("Malware Reporter",
"Sent one piece" + confirm);
} else {
Clouseau.notify("Clouseau",
Clouseau.notify("Malware Reporter",
"Sent " + count + " pieces" + confirm);
}
} catch (error) {
Clouseau.notify("Clouseau error", error);
Clouseau.notify("Malware Reporter", "Error: " + error);
}
},

Expand Down
6 changes: 3 additions & 3 deletions install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

<Description about="urn:mozilla:install-manifest">
<em:id>[email protected]</em:id>
<em:name>Clouseau</em:name>
<em:version>0.1</em:version>
<em:creator>Hansen Engineering</em:creator>
<em:name>Malware Reporter</em:name>
<em:version>0.7</em:version>
<em:creator>Rob Hansen</em:creator>

<em:targetApplication>
<Description>
Expand Down

0 comments on commit f7b9e16

Please sign in to comment.