mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
Code linting.
This commit is contained in:
parent
cde71f8a62
commit
ef38abe545
24 changed files with 642 additions and 559 deletions
|
@ -1,5 +1,3 @@
|
|||
/* global exports */
|
||||
/* jslint moz: true */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
@ -21,7 +19,6 @@
|
|||
// Translation
|
||||
var translate = require("sdk/l10n").get;
|
||||
var _ = function(name, replace, translateAPI){
|
||||
"use strict";
|
||||
if (!translateAPI){
|
||||
translateAPI = translate;
|
||||
}
|
||||
|
@ -38,8 +35,6 @@
|
|||
|
||||
// Stack parsing
|
||||
function parseStackEntry(entry){
|
||||
"use strict";
|
||||
|
||||
var m = /@(.*):(\d*):(\d*)$/.exec(entry) || ["", entry, "--", "--"];
|
||||
return {
|
||||
url: m[1],
|
||||
|
@ -67,8 +62,6 @@
|
|||
|
||||
// parse calling stack
|
||||
function parseErrorStack(errorStack){
|
||||
"use strict";
|
||||
|
||||
var callers = errorStack.trim().split("\n");
|
||||
var findme = callers.shift(); // Remove us from the stack
|
||||
findme = findme.replace(/(:[0-9]+){1,2}$/, ""); // rm line & column
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue