Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterPhilip committed Nov 7, 2020
2 parents 040f5a3 + 6a68800 commit ceed417
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = function (grunt) {
},
"production": {
"name": "Omnibug",
"version": "1.17.0",
"version": "1.17.1",
"storageKey": "omnibug",
"feedbackUrl": "https://github.com/MisterPhilip/omnibug/issues",
"analyticsID": "UA-114343677-2"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "omnibug",
"version": "1.17.0",
"version": "1.17.1",
"description": "Omnibug Extension",
"main": "Gruntfile.js",
"scripts": {
Expand Down
6 changes: 4 additions & 2 deletions src/devtools/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,7 @@ window.Omnibug = (() => {
});
});

console.log(settings.renameParameters);
let data = request.data.reduce((groups, item) => {
if (!item.hidden) {
const val = item.group;
Expand Down Expand Up @@ -916,7 +917,7 @@ window.Omnibug = (() => {
let styleSheet = d.getElementById("settingsStyles");
const defaults = (new OmnibugSettings).defaults;

const settings = Object.assign({}, defaults, newSettings);
settings = Object.assign({}, defaults, newSettings);

let theme = settings.theme,
themeType = theme === "auto" ? "auto" : "manual";
Expand Down Expand Up @@ -1178,7 +1179,8 @@ window.Omnibug = (() => {
* @param message
*/
receive_message(message) {
switch (message.event || "") {
message.event = message.event || "";
switch (message.event) {
case "webRequest":
addRequest(message);
break;
Expand Down
4 changes: 2 additions & 2 deletions src/providers/AdobeLaunch.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class AdobeLaunchProvider extends BaseProvider
{
super();
this._key = "ADOBELAUNCH";
this._pattern = /assets\.adobedtm\.com\/launch-[^?#]+.js/;
this._pattern = /assets\.adobedtm\.com(?:\/[^?#;]+)?\/launch-[^?#]+.js/;
this._name = "Adobe Launch";
this._type = "tagmanager";
this._keywords = ["activate", "activation", "tms"];
Expand Down Expand Up @@ -66,4 +66,4 @@ class AdobeLaunchProvider extends BaseProvider

return results;
}
}
}
7 changes: 4 additions & 3 deletions test/providers/AdobeLaunch.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ test("AdobeLaunchProvider pattern should match Adobe Launch calls", t => {
"https://assets.adobedtm.com/launch-ENf3494c5e66666d119e0e439ecc59e176-staging.min.js",
"https://assets.adobedtm.com/launch-ENf3494c5e66666d119e0e439ecc59e176-development.min.js",
"https://assets.adobedtm.com/launch-ENf3494c5e66666d119e0e439ecc59e176.js",
"https://assets.adobedtm.com/launch-ENf3494c5e66666d119e0e439ecc59e176.min.js?cachebuster=1234abc"
"https://assets.adobedtm.com/launch-ENf3494c5e66666d119e0e439ecc59e176.min.js?cachebuster=1234abc",
"https://assets.adobedtm.com/abc123/abc123/launch-ENf3494c5e66666d119e0e439ecc59e176.js",
],
badUrls = [
"https://assets.adobedtm.com/satelliteLib-ENf3494c5e66666d119e0e439ecc59e176.js",
Expand All @@ -45,7 +46,7 @@ test("OmnibugProvider returns Adobe Launch", t => {
test("AdobeLaunchProvider returns custom data", t => {
let provider = new AdobeLaunchProvider(),
developmentUrl = "https://assets.adobedtm.com/launch-ENf3494c5e66666d119e0e439ecc59e176-development.min.js",
stagingUrl = "https://assets.adobedtm.com/launch-ENf3494c5e66666d119e0e439ecc59e176-staging.min.js",
stagingUrl = "https://assets.adobedtm.com/abc123/abc123/launch-ENf3494c5e66666d119e0e439ecc59e176-staging.min.js",
prodUrl = "https://assets.adobedtm.com/launch-ENf3494c5e66666d119e0e439ecc59e176.min.js",
developmentResults = provider.parseUrl(developmentUrl),
stagingResults = provider.parseUrl(stagingUrl),
Expand All @@ -66,4 +67,4 @@ test("AdobeLaunchProvider returns custom data", t => {
t.is(stagingEnv.value, "staging");
t.is(typeof prodEnv, "object");
t.is(prodEnv.value, "production");
});
});

0 comments on commit ceed417

Please sign in to comment.