LEFT | RIGHT |
1 "use strict"; | 1 "use strict"; |
2 | 2 |
3 chrome.runtime.onMessage.addListener((message, sender, sendResponse) => | 3 chrome.runtime.onMessage.addListener((message, sender, sendResponse) => |
4 { | 4 { |
5 return ext.onMessage._dispatch(message, {}, sendResponse).indexOf(true) != -1; | 5 return ext.onMessage._dispatch(message, {}, sendResponse).indexOf(true) != -1; |
6 }); | 6 }); |
7 | 7 |
8 (function() | 8 (function() |
9 { | 9 { |
10 let port = null; | 10 let port = null; |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 if (!port.onDisconnect.hasListeners()) | 28 if (!port.onDisconnect.hasListeners()) |
29 { | 29 { |
30 port.disconnect(); | 30 port.disconnect(); |
31 port = null; | 31 port = null; |
32 } | 32 } |
33 } | 33 } |
34 } | 34 } |
35 }; | 35 }; |
36 }()); | 36 }()); |
LEFT | RIGHT |