Skip to content

Commit

Permalink
removed ie11 incompatible syntax and updated sentry version to 5.10.2 (
Browse files Browse the repository at this point in the history
  • Loading branch information
dfroneberger authored Jan 6, 2020
1 parent 075295c commit 3d43374
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion view/base/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
var config = {
map: {
'*': {
sentryBundle: 'Bread_BreadCheckout/js/sentry/5.4.3-bundle.min',
sentryBundle: 'Bread_BreadCheckout/js/sentry/5.10.2-bundle.min',
}
}
};
3 changes: 3 additions & 0 deletions view/base/web/js/sentry/5.10.2-bundle.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion view/base/web/js/sentry/sentry-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ define(
function (key) {
var value = JSON.stringify(issueInfo[key]);

if (TRACKED_TAG_KEYS.includes(key)) {
if (TRACKED_TAG_KEYS.indexOf(key) !== -1) {
scope.setTag(key, value);
} else {
scope.setExtra(key, value);
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/templates/breadcheckout/grouped.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
breadConfig.financingProgramId = (itemsPriceSum >= cartSizeThreshold) ? cartSizeFinancingId : 'null';
} else if(financingInfo.enabled && financingInfo.mode.sku){
var productSku = "<?= /* @noEscape */ $block->getProduct()->getSku(); ?>";
if(financingInfo.sku_limit.includes(productSku) === true){
if(financingInfo.sku_limit.indexOf(productSku) !== -1){
breadConfig.financingProgramId = financingInfo.id;
}
}
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/templates/breadcheckout/list_product.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ $productId = $product->getId();
breadConfig.financingProgramId = (itemsPriceSum >= cartSizeThreshold) ? cartSizeFinancingId : 'null';
} else if (financingInfo.enabled && financingInfo.mode.sku){
var productSku = "<?= /* @noEscape */ $block->getProduct()->getSku(); ?>";
if(financingInfo.sku_limit.includes(productSku) === true){
if(financingInfo.sku_limit.indexOf(productSku) !== -1){
breadConfig.financingProgramId = financingInfo.id;
}
}
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/templates/breadcheckout/view.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
breadConfig.financingProgramId = (itemsPriceSum >= cartSizeThreshold) ? cartSizeFinancingId : 'null';
} else if (financingInfo.enabled && financingInfo.mode.sku){
var productSku = "<?= /* @noEscape */ $block->getProduct()->getSku(); ?>";
if(financingInfo.sku_limit.includes(productSku) === true){
if(financingInfo.sku_limit.indexOf(productSku) !== -1){
breadConfig.financingProgramId = financingInfo.id;
}
}
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/js/product/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ define(
var role = $(this).data('calendar-role');
skuSuffix += '***' + identifier + '===' + role + '===' + val;

if(!skipIds.includes(optionId)) {
if(skipIds.indexOf(optionId) === -1) {

var dateSelected = true;
$('[id^=options_' + optionId + '_]').each(
Expand Down

0 comments on commit 3d43374

Please sign in to comment.