Unverified Commit 8c3f4a2e authored by boklm's avatar boklm
Browse files

lib/screenshot.js: remove use of utils module

parent 39a19dbd
......@@ -7,9 +7,6 @@
Cu.import("resource://gre/modules/Services.jsm");
// Include the required modules
var utils = require("utils");
/**
* This function creates a screenshot of the window provided in the given
* controller and highlights elements from the coordinates provided in the
......@@ -69,12 +66,7 @@ function _saveCanvas(canvas) {
file = Services.dirsvc.get("TmpD", Ci.nsIFile);
}
var fileName = utils.appInfo.name + "-" +
utils.appInfo.locale + "." +
utils.appInfo.version + "." +
utils.appInfo.buildID + "." +
utils.appInfo.os + ".png";
file.append(fileName);
file.append("screenshot.png");
// if a file already exists, don't overwrite it and create a new name
file.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, parseInt("0666", 8));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment