Permalink
Browse files

[bookmarklets] Drop bookmarklet icon due to inconsistent handling acr…

…oss browsers
  • Loading branch information...
lovett committed Nov 5, 2018
1 parent 80c014f commit f440886848039f50a8e1efc416a035f05c3a5f8d
Showing with 2 additions and 4 deletions.
  1. +2 −2 apps/bookmarklets/bookmarklets.jinja.html
  2. +0 −2 templates/macros.jinja.html
@@ -6,13 +6,13 @@
{% set url = app_url + "/static/js/" + url %}
{% endif %}
<div class="bookmarklet-container">
<a href="javascript:d=new Date();s=document.createElement('script');s.setAttribute('src','{{ url }}?d=' + d.getTime());document.body.appendChild(s);void(s)">{{ macros.bookmarkletIcon }}️ {{ label }}</a>
<a href="javascript:d=new Date();s=document.createElement('script');s.setAttribute('src','{{ url }}?d=' + d.getTime());document.body.appendChild(s);void(s)">{{ label }}</a>
</div>
{%- endmacro %}
{% macro inline_bookmarklet(js, label) -%}
<div class="bookmarklet-container">
<a href="javascript:{{ js|e }}">{{ macros.bookmarkletIcon }} {{ label }}</a>
<a href="javascript:{{ js|e }}">{{ label }}</a>
</div>
{%- endmacro %}
@@ -66,5 +66,3 @@
{%- macro link(text, url, separator="") -%}
{{separator}} <a href="{{url}}" rel="noreferrer">{{text}}</a>
{%- endmacro -%}
{% set bookmarkletIcon = "🔖" %}

0 comments on commit f440886

Please sign in to comment.