Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jpescador/hugo-future-imperfect.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorJulio Pescador <jpescador@users.noreply.github.com>2016-02-23 06:51:56 +0300
committerJulio Pescador <jpescador@users.noreply.github.com>2016-02-23 06:51:56 +0300
commitba177561678590fdfe47dd02d28106763d842c91 (patch)
tree3e4175378dbe47c5e83e4d7e59651a0e60193722 /static
parent95f5ca8204f0a1cf73250533e2362cddd4a9cbc1 (diff)
Remove setTimeout function due to ad blocking
The setTimeout function was causing the share links in the navigation bar to be blocked when clicked on. This was due to the setTimeout function that would delay the call to window.open. Commenting out the setTimeout function fixes this issue.
Diffstat (limited to 'static')
-rw-r--r--static/js/util.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/static/js/util.js b/static/js/util.js
index bdb8e9f..7505cc6 100644
--- a/static/js/util.js
+++ b/static/js/util.js
@@ -164,14 +164,14 @@
$this._hide();
// Redirect to href.
- window.setTimeout(function() {
+ //window.setTimeout(function() {
if (target == '_blank')
window.open(href);
else
window.location.href = href;
- }, config.delay + 10);
+ //}, config.delay + 10);
});
@@ -584,4 +584,4 @@
};
-})(jQuery); \ No newline at end of file
+})(jQuery);