Permalink
Browse files

derp lavarrunner

  • Loading branch information...
Manuel-777 committed Jan 8, 2019
1 parent de519a9 commit e0c1ab73d9f4f806ed84bc698da8e1fe19a30cc2
Showing with 7 additions and 4 deletions.
  1. +1 −1 window_main/index.html
  2. +6 −3 window_main/renderer.js
@@ -25,7 +25,7 @@
<div class="top">
<div class="flex_item">
<div class="top_logo"></div>
<div class="top_artist">Githu Lavarunner by Jesper Ejsing</div>
<div class="top_artist">Ghitu Lavarunner by Jesper Ejsing</div>
</div>
<div class="flex_item">
<div class="unlink" title="You are not logged-in."></div>
@@ -2139,11 +2139,12 @@ function change_background(arg, grpId = 0) {

//console.log(arg, grpId, _card);
if (arg == "default") {
$('.top_artist').html("Githu Lavarunner by Jesper Ejsing");
if (defaultBackground == "") {
$('.main_wrapper').css("background-image", "url(../images/Ghitu-Lavarunner-Dominaria-MtG-Art.jpg)");
$('.top_artist').html("Ghitu Lavarunner by Jesper Ejsing");
if (defaultBackground == "") {
$('.main_wrapper').css("background-image", "url(../images/Ghitu-Lavarunner-Dominaria-MtG-Art.jpg)");
}
else {
$('.top_artist').html("");
$('.main_wrapper').css("background-image", "url("+defaultBackground+")");
}
}
@@ -2152,9 +2153,11 @@ function change_background(arg, grpId = 0) {
$('.main_wrapper').css("background-image", "url(https://img.scryfall.com/cards"+_card.images["art_crop"]+")");
}
else if (fs.existsSync(arg)) {
$('.top_artist').html("");
$('.main_wrapper').css("background-image", "url("+arg+")");
}
else {
$('.top_artist').html("");
$.ajax({
url: arg,
type: 'HEAD',

0 comments on commit e0c1ab7

Please sign in to comment.