Skip to content

Commit

Permalink
Fix JS error in Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Jul 26, 2020
1 parent a7911be commit 49c85c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/resources/dist/js/smith.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/resources/dist/js/smith.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/resources/src/js/smith.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,11 @@ Craft.Smith.Menu = Garnish.Base.extend({
var parsedPostData = {};

for (var paramHandle in postData) {
var parsedHandle = paramHandle.replace(/^fields.+?(?<=fields])/mg, 'fields');
console.log(paramHandle)
var parsedHandle = paramHandle.replace(/^fields.+?(fields])/mg, 'fields');

// Save the namespace for later;
data.namespace = paramHandle.match(/^fields.+?(?<=fields])/mg)[0];
data.namespace = paramHandle.match(/^fields.+?(fields])/mg)[0];

parsedPostData[parsedHandle] = postData[paramHandle];
}
Expand Down

0 comments on commit 49c85c3

Please sign in to comment.