<% if flash.present? %>
  <script>
    <% message = flash.map { |key, value| value }.join("\r\n") %>
    HTMLImports.whenReady(function(){
        var app = document.getElementById('oj-app');
        app.showNotification(<%= raw message.to_json %>);
    });
  </script>
<% end %>
<% if flash.present? %>
  <script>
      <% message = flash.map { |key, value| value }.join("\r\n") %>
      HTMLImports.whenReady(function(){
          var app = document.querySelector('oj-app');
          app.showNotification(<%= raw message.to_json %>);
      });
  </script>
<% end %>
Fix flash messages from back-end
Fix flash messages from back-end
