mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-27 03:21:01 +00:00
Avoid raw javascript in template
It kills the Symfony Crawler :)
This commit is contained in:
parent
d01db0c71d
commit
8125b415d8
4 changed files with 3 additions and 4 deletions
|
@ -0,0 +1,2 @@
|
|||
|
||||
top["bookmarklet-url@wallabag.org"]=""+"<!DOCTYPE html>"+"<html>"+"<head>"+"<title>bag it!</title>"+'<link rel="icon" href="tpl/img/favicon.ico" />'+"</head>"+"<body>"+"<script>"+"window.onload=function(){"+"window.setTimeout(function(){"+"history.back();"+"},250);"+"};"+"</scr"+"ipt>"+"</body>"+"</html>"
|
|
@ -1,3 +0,0 @@
|
|||
<script type="text/javascript">
|
||||
top["bookmarklet-url@wallabag.org"]=""+"<!DOCTYPE html>"+"<html>"+"<head>"+"<title>bag it!</title>"+'<link rel="icon" href="tpl/img/favicon.ico" />'+"</head>"+"<body>"+"<script>"+"window.onload=function(){"+"window.setTimeout(function(){"+"history.back();"+"},250);"+"};"+"</scr"+"ipt>"+"</body>"+"</html>"
|
||||
</script>
|
|
@ -37,3 +37,4 @@
|
|||
<script src="{{ asset('themes/_global/js/saveLink.js') }}"></script>
|
||||
<script src="{{ asset('themes/_global/js/popupForm.js') }}"></script>
|
||||
<script src="{{ asset('themes/baggy/js/closeMessage.js') }}"></script>
|
||||
<script src="{{ asset('bundles/wallabagcore/js/bookmarklet.js') }}"></script>
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
<![endif]-->
|
||||
<title>{% block title %}{% endblock %} - wallabag</title>
|
||||
{% include "WallabagCoreBundle::_head.html.twig" %}
|
||||
{% include "WallabagCoreBundle::_bookmarklet.html.twig" %}
|
||||
</head>
|
||||
<body>
|
||||
{% include "WallabagCoreBundle::_top.html.twig" %}
|
||||
|
|
Loading…
Reference in a new issue