app/views/test.erb in clarion-0.3.0 vs app/views/test.erb in clarion-1.0.0

- old
+ new

@@ -10,10 +10,10 @@ <form id="callback_form" class="hidden" method='POST' action="/test/callback"> <input type="hidden" name="state" value=""> <input type="hidden" name="data" value=""> </form> -<button id="register_cb_button" data-url="/register?<%= URI.encode_www_form(name: @name, comment: @comment, state: @state, callback: "js:#{request.base_url}", public_key: @public_key)%>">Register (JS callback)</button> +<button id="register_cb_button" data-url="<%= base_url %>/register?<%= URI.encode_www_form(name: @name, comment: @comment, state: @state, callback: "js:#{request.base_url}", public_key: @public_key)%>">Register (JS callback)</button> <script> "use strict"; document.addEventListener("DOMContentLoaded", function() { window.addEventListener("message", function(event) { console.log(event.data);