This is an automated email from the ASF dual-hosted git repository.
poorejc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-flagon-useralejs.git
The following commit(s) were added to refs/heads/master by this push:
new f82c6d5 [FLAGON-341] resolves duplicate logging issue in WebExtension
f82c6d5 is described below
commit f82c6d51b99755ea27305cd33243fcf04ce11457
Author: poorejc <[email protected]>
AuthorDate: Fri Sep 13 23:55:45 2019 -0400
[FLAGON-341] resolves duplicate logging issue in WebExtension
---
build/UserAleWebExtension/content.js | 14 +-------------
src/UserALEWebExtension/content.js | 2 +-
2 files changed, 2 insertions(+), 14 deletions(-)
diff --git a/build/UserAleWebExtension/content.js
b/build/UserAleWebExtension/content.js
index ab02b35..ad46097 100644
--- a/build/UserAleWebExtension/content.js
+++ b/build/UserAleWebExtension/content.js
@@ -721,18 +721,6 @@ function setup(config) {
}
/**
- * Used to start the logging process if the
- * autostart configuration option is set to false.
- */
-function start() {
- if (!started) {
- setup(config$1);
- }
-
- config$1.on = true;
-}
-
-/**
* Updates the current configuration
* object with the provided values.
* @param {Object} newConfig The configuration options to use.
@@ -796,7 +784,7 @@ function queueLog(log) {
function injectScript(config) {
options(config);
- start();
+// start(); not necessary given that autostart in place, and option is
masked from WebExt users
setLogFilter(function (log) {
queueLog(Object.assign({}, log, {
pageUrl: document.location.href,
diff --git a/src/UserALEWebExtension/content.js
b/src/UserALEWebExtension/content.js
index 385fa8d..be80806 100644
--- a/src/UserALEWebExtension/content.js
+++ b/src/UserALEWebExtension/content.js
@@ -54,7 +54,7 @@ function queueLog(log) {
function injectScript(config) {
options(config);
- start();
+// start(); not necessary given that autostart in place, and option is
masked from WebExt users
filter(function (log) {
queueLog(Object.assign({}, log, {
pageUrl: document.location.href,