##// END OF EJS Templates
Fixed capturing worker errors
neko259 -
r1466:22bf1cc4 default
parent child Browse files
Show More
@@ -96,8 +96,8 function selectFileChoice() {
96 form.submit();
96 form.submit();
97 $('.post-form-w').unblock();
97 $('.post-form-w').unblock();
98 };
98 };
99 worker.port.onerror = function(event){
99 worker.onerror = function(event){
100 throw new Error(event.message + " (" + event.filename + ":" + event.lineno + ")");
100 throw new Error(event.message + " (" + event.filename + ":" + event.lineno + ")");
101 };
101 };
102 worker.port.start();
102 worker.port.start();
103
103
@@ -88,8 +88,8 function initFavPanel() {
88 worker.port.onmessage = function(e) {
88 worker.port.onmessage = function(e) {
89 updateFavPosts(e.data);
89 updateFavPosts(e.data);
90 };
90 };
91 worker.port.onerror = function(event){
91 worker.onerror = function(event){
92 throw new Error(event.message + " (" + event.filename + ":" + event.lineno + ")");
92 throw new Error(event.message + " (" + event.filename + ":" + event.lineno + ")");
93 };
93 };
94 worker.port.start();
94 worker.port.start();
95
95
General Comments 0
You need to be logged in to leave comments. Login now