lib/web/views/bookmarklet/download.js.erb in narou-3.2.0.1 vs lib/web/views/bookmarklet/download.js.erb in narou-3.2.1
- old
+ new
@@ -30,11 +30,11 @@
if (document.getElementById("narourb-console")) return;
var url, div, iframe, btn_close;
url = '<%= "#{request.scheme}://#{env["SERVER_NAME"]}:#{env["SERVER_PORT"]}" %>' +
- "/widget/download?from=" + location.hostname + "&target=" +
- encodeURIComponent(location.href) + "&t=" + Date.now();
+ "/widget/download?from=" + location.hostname + "&mail=<%= @params['mail'].empty? ? '' : '1' %>" +
+ "&target=" + encodeURIComponent(location.href) + "&t=" + Date.now();
// IE の場合、iframe は親のドキュメントモードが汚染して動かない可能性があるので対処
var docmode = document.documentMode || 10;
if (docmode < 10) {
window.open(url, "dl_window", "width=400,height=250,menubar=no,toolbar=no,scrollbars=no,resizable=yes");