mirror of
https://github.com/wallabag/wallabag.git
synced 2024-09-27 05:50:02 +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/saveLink.js') }}"></script>
|
||||||
<script src="{{ asset('themes/_global/js/popupForm.js') }}"></script>
|
<script src="{{ asset('themes/_global/js/popupForm.js') }}"></script>
|
||||||
<script src="{{ asset('themes/baggy/js/closeMessage.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]-->
|
<![endif]-->
|
||||||
<title>{% block title %}{% endblock %} - wallabag</title>
|
<title>{% block title %}{% endblock %} - wallabag</title>
|
||||||
{% include "WallabagCoreBundle::_head.html.twig" %}
|
{% include "WallabagCoreBundle::_head.html.twig" %}
|
||||||
{% include "WallabagCoreBundle::_bookmarklet.html.twig" %}
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{% include "WallabagCoreBundle::_top.html.twig" %}
|
{% include "WallabagCoreBundle::_top.html.twig" %}
|
||||||
|
|
Loading…
Reference in a new issue