Skip to content

Commit

Permalink
fix: disable online wallpapers script
Browse files Browse the repository at this point in the history
Resolves #295
  • Loading branch information
mrf345 committed Mar 15, 2024
1 parent 62a6cbd commit 300dcf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
16 changes: 1 addition & 15 deletions templates/_wallpapers.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,10 @@
{% macro wallpapers(selector, enable_reddit=True, overlay="rgba(0,0,0,0.7)", duration=60) %}
{% macro wallpapers(selector, enable_reddit=False, overlay="rgba(0,0,0,0.7)", duration=60) %}
// Macro to set the background wallpapers for a given element via `selector`
{% if enable_reddit %}
RedditWallpapers({
isFixed: 'true',
id: '{{ selector }}',
isOverlayed: 'true',
overlay: '{{ overlay }}',
duration: {{ duration }},
limit: 20,
timeout: 1,
category: ['CityPorn'],
defaultImg: "{{ url_for('static', filename='images/dbg.jpg') }}"
})
{% else %}
$('{{ selector }}').css({
'background-size': 'cover',
'background-repeat': 'no-repeat',
'background-position': 'center',
'background-attachment': 'fixed',
'background-image': "linear-gradient({{ overlay }}, {{ overlay }}), url({{ url_for('static', filename='images/dbg.jpg') }})"
})
{% endif %}
{% endmacro %}
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
localStorage.redWallIndex = undefined
sessionStorage.toClear = 'yes'
}
{{ wallpapers('.widw', enable_reddit=settings.visual_effects) }}
{{ wallpapers('.widw', enable_reddit=False) }}
disciple({
identifier: '.disciple',
msg_text: "{{ translate('You made changes on the previous form without submitting. Do you wish to restore it ?', 'en', [defLang]) }}",
Expand Down

0 comments on commit 300dcf2

Please sign in to comment.