Skip to content

Instantly share code, notes, and snippets.

@gnysek
Created November 16, 2017 08:37
Show Gist options
  • Save gnysek/487fdab6cc379f28a841db1a5dc884b5 to your computer and use it in GitHub Desktop.
Save gnysek/487fdab6cc379f28a841db1a5dc884b5 to your computer and use it in GitHub Desktop.
Magento disabled Flash fix
js/lib/flex.js:425
----
return Flex.checkFlashPlayerVersion(major, minor, revision);
+++
try {
return Flex.checkFlashPlayerVersion(major, minor, revision);
} catch (e) {
console.log('This browser doesn\'t support Flash, or disables it by default.');
return 0;
}
=================================
(only if "Uncaught TypeError: Cannot read property 'get' of undefined")
app/design/adminhtml/default/default/template/catalog/product/js.phtml:41
---
Event.observe($('tax_class_id'), 'change', recalculateTax);
+++
if ($('tax_class_id')) {
Event.observe($('tax_class_id'), 'change', recalculateTax);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment