Show More
@@ -85,7 +85,7 b' function selectFileChoice() {' | |||||
85 |
|
85 | |||
86 | $(document).ready(function() { |
|
86 | $(document).ready(function() { | |
87 | var powDifficulty = parseInt($('body').attr('data-pow-difficulty')); |
|
87 | var powDifficulty = parseInt($('body').attr('data-pow-difficulty')); | |
88 | if (powDifficulty > 0) { |
|
88 | if (powDifficulty > 0 && typeof SharedWorker != 'undefined') { | |
89 | var worker = new SharedWorker($('#powScript').attr('src')); |
|
89 | var worker = new SharedWorker($('#powScript').attr('src')); | |
90 | worker.port.onmessage = function(e) { |
|
90 | worker.port.onmessage = function(e) { | |
91 | var form = $('#form'); |
|
91 | var form = $('#form'); |
@@ -83,7 +83,7 b' function updateFavPosts(data) {' | |||||
83 |
|
83 | |||
84 | function initFavPanel() { |
|
84 | function initFavPanel() { | |
85 | var favPanelButton = $('#fav-panel-btn'); |
|
85 | var favPanelButton = $('#fav-panel-btn'); | |
86 | if (favPanelButton.length > 0) { |
|
86 | if (favPanelButton.length > 0 && typeof SharedWorker != 'undefined') { | |
87 | var worker = new SharedWorker($('body').attr('data-update-script')); |
|
87 | var worker = new SharedWorker($('body').attr('data-update-script')); | |
88 | worker.port.onmessage = function(e) { |
|
88 | worker.port.onmessage = function(e) { | |
89 | updateFavPosts(e.data); |
|
89 | updateFavPosts(e.data); |
General Comments 0
You need to be logged in to leave comments.
Login now