Skip to content

Commit 10c0333

Browse files
committed
Code formatting
* fix indentation of chatra.swig * shorten `return` of lean-analytics.swig
1 parent cded7de commit 10c0333

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

layout/_third-party/analytics/lean-analytics.swig

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@
104104
};
105105
{% if page.layout === 'post' %}
106106
const localhost = /http:\/\/(localhost|127.0.0.1|0.0.0.0)/;
107-
if (localhost.test(document.URL)) {
108-
return;
109-
}
107+
if (localhost.test(document.URL)) return;
110108
addCount(Counter);
111109
{% else %}
112110
if ($('.post-title-link').length >= 1) {

layout/_third-party/chatra.swig

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{% if theme.chatra.enable %}
22
{% if theme.chatra.embed %}
3-
<script>
4-
window.ChatraSetup = {
5-
mode: 'frame',
6-
injectTo: '{{ theme.chatra.embed }}'
7-
};
8-
</script>
3+
<script>
4+
window.ChatraSetup = {
5+
mode: 'frame',
6+
injectTo: '{{ theme.chatra.embed }}'
7+
};
8+
</script>
99
{% endif %}
1010
<script>
1111
(function(d, w, c) {

0 commit comments

Comments
 (0)