Patchwork [2,of,3,website] downloads: indent onload function 4 spaces like the rest of the code

login
register
mail settings
Submitter Kevin Bullock
Date July 5, 2017, 7:27 p.m.
Message ID <5a7c3f2b2a5d6caacc03.1499282831@ingalls.local>
Download mbox | patch
Permalink /patch/22014/
State Accepted
Headers show

Comments

Kevin Bullock - July 5, 2017, 7:27 p.m.
# HG changeset patch
# User Kevin Bullock <kbullock+mercurial@ringworld.org>
# Date 1494817300 18000
#      Sun May 14 22:01:40 2017 -0500
# Node ID 5a7c3f2b2a5d6caacc0314e8433da1705360b9d3
# Parent  23ff698c5dbb8d205fb81230b4e41db837cfb624
downloads: indent onload function 4 spaces like the rest of the code

Patch

diff --git a/static/js/download.js b/static/js/download.js
--- a/static/js/download.js
+++ b/static/js/download.js
@@ -134,19 +134,19 @@  var Downloader = {
 };
 
 (function (document, window) {
-  var load = function () {
-    Downloader.init(sources);
-    window.dl = Downloader.select();
-    var versElement = document.getElementById('download-version')
-      , descElement = document.getElementById('download-description');
-    versElement.appendChild(document.createTextNode(dl.attr('version')));
-    descElement.appendChild(document.createTextNode(dl.attr('desc')));
-  }
+    var load = function () {
+        Downloader.init(sources);
+        window.dl = Downloader.select();
+        var versElement = document.getElementById('download-version')
+          , descElement = document.getElementById('download-description');
+        versElement.appendChild(document.createTextNode(dl.attr('version')));
+        descElement.appendChild(document.createTextNode(dl.attr('desc')));
+    }
 
-  if (document.readyState !== 'complete') {
-    document.addEventListener('DOMContentLoaded', load);
-    return;
-  }
+    if (document.readyState !== 'complete') {
+        document.addEventListener('DOMContentLoaded', load);
+        return;
+    }
 
-  load();
+    load();
 })(document, window);