You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-14 19:02:33 +03:00
remove space before function parentheses and maximum allowed line
This commit is contained in:
@@ -72,13 +72,13 @@ const confetti = {
|
|||||||
function startConfetti(roomWidth, timeout) {
|
function startConfetti(roomWidth, timeout) {
|
||||||
const width = roomWidth;
|
const width = roomWidth;
|
||||||
const height = window.innerHeight;
|
const height = window.innerHeight;
|
||||||
window.requestAnimationFrame = (function () {
|
window.requestAnimationFrame = (function() {
|
||||||
return window.requestAnimationFrame ||
|
return window.requestAnimationFrame ||
|
||||||
window.webkitRequestAnimationFrame ||
|
window.webkitRequestAnimationFrame ||
|
||||||
window.mozRequestAnimationFrame ||
|
window.mozRequestAnimationFrame ||
|
||||||
window.oRequestAnimationFrame ||
|
window.oRequestAnimationFrame ||
|
||||||
window.msRequestAnimationFrame ||
|
window.msRequestAnimationFrame ||
|
||||||
function (callback) {
|
function(callback) {
|
||||||
return window.setTimeout(callback, confetti.frameInterval);
|
return window.setTimeout(callback, confetti.frameInterval);
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
@@ -86,7 +86,8 @@ const confetti = {
|
|||||||
if (canvas === null) {
|
if (canvas === null) {
|
||||||
canvas = document.createElement("canvas");
|
canvas = document.createElement("canvas");
|
||||||
canvas.setAttribute("id", "confetti-canvas");
|
canvas.setAttribute("id", "confetti-canvas");
|
||||||
canvas.setAttribute("style", "display:block;z-index:999999;pointer-events:none;position:fixed;top:0; right:0");
|
canvas.setAttribute("style",
|
||||||
|
"display:block;z-index:999999;pointer-events:none;position:fixed;top:0; right:0");
|
||||||
document.body.prepend(canvas);
|
document.body.prepend(canvas);
|
||||||
canvas.width = width;
|
canvas.width = width;
|
||||||
canvas.height = height;
|
canvas.height = height;
|
||||||
|
|||||||
Reference in New Issue
Block a user