Hide a harmless console error during rush conditions
This commit is contained in:
parent
96338ebe0b
commit
2a7113ebdf
@ -13371,6 +13371,9 @@
|
||||
},
|
||||
reposition: function() {
|
||||
var mascot;
|
||||
if (!Style.mascot) {
|
||||
return;
|
||||
}
|
||||
mascot = Mascots[Conf['mascot']];
|
||||
return Style.mascot.textContent = "#mascot img {\nheight: " + (mascot.height && isNaN(parseFloat(mascot.height)) ? mascot.height : mascot.height ? parseInt(mascot.height, 10) + 'px' : 'auto') + ";\nwidth: " + (mascot.width && isNaN(parseFloat(mascot.width)) ? mascot.width : mascot.width ? parseInt(mascot.width, 10) + 'px' : 'auto') + ";\n}\n#mascot {\nmargin: " + (mascot.vOffset || 0) + "px " + (mascot.hOffset || 0) + "px;\n}\n.sidebar-large #mascot {\nleft: " + (mascot.center ? 25 : 0) + "px;\nright: " + (mascot.center ? 25 : 0) + "px;\n}\n.mascot-position-above-post-form.post-form-style-fixed #mascot {\ntransform: translateY(-" + (QR.nodes ? QR.nodes.el.getBoundingClientRect().height : 0) + "px);\n}";
|
||||
}
|
||||
|
||||
@ -13361,6 +13361,9 @@
|
||||
},
|
||||
reposition: function() {
|
||||
var mascot;
|
||||
if (!Style.mascot) {
|
||||
return;
|
||||
}
|
||||
mascot = Mascots[Conf['mascot']];
|
||||
return Style.mascot.textContent = "#mascot img {\nheight: " + (mascot.height && isNaN(parseFloat(mascot.height)) ? mascot.height : mascot.height ? parseInt(mascot.height, 10) + 'px' : 'auto') + ";\nwidth: " + (mascot.width && isNaN(parseFloat(mascot.width)) ? mascot.width : mascot.width ? parseInt(mascot.width, 10) + 'px' : 'auto') + ";\n}\n#mascot {\nmargin: " + (mascot.vOffset || 0) + "px " + (mascot.hOffset || 0) + "px;\n}\n.sidebar-large #mascot {\nleft: " + (mascot.center ? 25 : 0) + "px;\nright: " + (mascot.center ? 25 : 0) + "px;\n}\n.mascot-position-above-post-form.post-form-style-fixed #mascot {\n-webkit-transform: translateY(-" + (QR.nodes ? QR.nodes.el.getBoundingClientRect().height : 0) + "px);\n}";
|
||||
}
|
||||
|
||||
@ -365,5 +365,6 @@ MascotTools =
|
||||
reader.readAsText file
|
||||
|
||||
reposition: ->
|
||||
return unless Style.mascot
|
||||
mascot = Mascots[Conf['mascot']]
|
||||
Style.mascot.textContent = """<%= grunt.file.read('src/General/css/mascot.css') %>"""
|
||||
Loading…
x
Reference in New Issue
Block a user