Created
November 16, 2017 08:37
-
-
Save gnysek/487fdab6cc379f28a841db1a5dc884b5 to your computer and use it in GitHub Desktop.
Magento disabled Flash fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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