From 330dd15cc6fc4b187a3b430e4ba9106cdc22015c Mon Sep 17 00:00:00 2001 From: Glen Chiacchieri Date: Tue, 6 Aug 2024 16:34:46 -0400 Subject: [PATCH] fixes #233, remove console.log from distributed version --- ExtPay.dev.js | 1 - dist/ExtPay.common.js | 1 - dist/ExtPay.js | 1 - dist/ExtPay.module.js | 1 - package.json | 2 +- sample-extension-mv2/ExtPay.js | 1 - sample-extension-mv3/ExtPay.js | 1 - 7 files changed, 1 insertion(+), 7 deletions(-) diff --git a/ExtPay.dev.js b/ExtPay.dev.js index e344ae2..755c230 100644 --- a/ExtPay.dev.js +++ b/ExtPay.dev.js @@ -329,7 +329,6 @@ You can copy and paste this to your manifest.json file to fix this error: }, startBackground: function() { browser.runtime.onMessage.addListener(function(message, sender, send_response) { - console.log('service worker got message! Here it is:', message) if (message == 'fetch-user') { // Only called via extensionpay.com/extension/[extension-id]/paid -> content_script when user successfully pays. // It's possible attackers could trigger this but that is basically harmless. It would just query the user. diff --git a/dist/ExtPay.common.js b/dist/ExtPay.common.js index 1e2f7d4..7318f9e 100644 --- a/dist/ExtPay.common.js +++ b/dist/ExtPay.common.js @@ -349,7 +349,6 @@ You can copy and paste this to your manifest.json file to fix this error: }, startBackground: function() { browser__namespace.runtime.onMessage.addListener(function(message, sender, send_response) { - console.log('service worker got message! Here it is:', message); if (message == 'fetch-user') { // Only called via extensionpay.com/extension/[extension-id]/paid -> content_script when user successfully pays. // It's possible attackers could trigger this but that is basically harmless. It would just query the user. diff --git a/dist/ExtPay.js b/dist/ExtPay.js index 0a6830d..985e886 100644 --- a/dist/ExtPay.js +++ b/dist/ExtPay.js @@ -1558,7 +1558,6 @@ You can copy and paste this to your manifest.json file to fix this error: }, startBackground: function() { browserPolyfill.runtime.onMessage.addListener(function(message, sender, send_response) { - console.log('service worker got message! Here it is:', message); if (message == 'fetch-user') { // Only called via extensionpay.com/extension/[extension-id]/paid -> content_script when user successfully pays. // It's possible attackers could trigger this but that is basically harmless. It would just query the user. diff --git a/dist/ExtPay.module.js b/dist/ExtPay.module.js index 57990f6..519d3a8 100644 --- a/dist/ExtPay.module.js +++ b/dist/ExtPay.module.js @@ -327,7 +327,6 @@ You can copy and paste this to your manifest.json file to fix this error: }, startBackground: function() { browser.runtime.onMessage.addListener(function(message, sender, send_response) { - console.log('service worker got message! Here it is:', message); if (message == 'fetch-user') { // Only called via extensionpay.com/extension/[extension-id]/paid -> content_script when user successfully pays. // It's possible attackers could trigger this but that is basically harmless. It would just query the user. diff --git a/package.json b/package.json index 81514b9..69613b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "extpay", - "version": "4.0.0-beta.6", + "version": "4.0.0-beta.7", "description": "The JavaScript library for https://extensionpay.com - payments for browser extensions, no server needed.", "main": "./dist/ExtPay.common.js", "module": "./dist/ExtPay.module.js", diff --git a/sample-extension-mv2/ExtPay.js b/sample-extension-mv2/ExtPay.js index 0a6830d..985e886 100644 --- a/sample-extension-mv2/ExtPay.js +++ b/sample-extension-mv2/ExtPay.js @@ -1558,7 +1558,6 @@ You can copy and paste this to your manifest.json file to fix this error: }, startBackground: function() { browserPolyfill.runtime.onMessage.addListener(function(message, sender, send_response) { - console.log('service worker got message! Here it is:', message); if (message == 'fetch-user') { // Only called via extensionpay.com/extension/[extension-id]/paid -> content_script when user successfully pays. // It's possible attackers could trigger this but that is basically harmless. It would just query the user. diff --git a/sample-extension-mv3/ExtPay.js b/sample-extension-mv3/ExtPay.js index 0a6830d..985e886 100644 --- a/sample-extension-mv3/ExtPay.js +++ b/sample-extension-mv3/ExtPay.js @@ -1558,7 +1558,6 @@ You can copy and paste this to your manifest.json file to fix this error: }, startBackground: function() { browserPolyfill.runtime.onMessage.addListener(function(message, sender, send_response) { - console.log('service worker got message! Here it is:', message); if (message == 'fetch-user') { // Only called via extensionpay.com/extension/[extension-id]/paid -> content_script when user successfully pays. // It's possible attackers could trigger this but that is basically harmless. It would just query the user.