FIX: Use getAttribute instead of dataset (#10848)

FIX: Use getAttribute instead of dataset (#10848)

IE10 does not have dataset field.

diff --git a/vendor/assets/javascripts/browser-update.js.erb b/vendor/assets/javascripts/browser-update.js.erb
index ea8c06f..cabd094 100644
--- a/vendor/assets/javascripts/browser-update.js.erb
+++ b/vendor/assets/javascripts/browser-update.js.erb
@@ -23,7 +23,7 @@ var $buo = function() {
   var noscriptElements = document.getElementsByTagName("noscript");
   // find the element with the "data-path" attribute set
   for (var i = 0; i < noscriptElements.length; ++i) {
-    if (noscriptElements[i].dataset["path"]) {
+    if (noscriptElements[i].getAttribute("data-path")) {
       // noscriptElements[i].innerHTML contains encoded HTML
       mainElement.innerHTML = noscriptElements[i].childNodes[0].nodeValue;
       break;

GitHub sha: 9c0892c4

This commit appears in #10848 which was approved by ZogStriP. It was merged by udan11.