()
| 91 | }; |
| 92 | |
| 93 | let _getOptions = function () { |
| 94 | return new Promise(resolve => { |
| 95 | try { |
| 96 | Settings.getOptions(opts => resolve(opts || {})); |
| 97 | } catch (_) { |
| 98 | resolve({}); |
| 99 | } |
| 100 | }); |
| 101 | }; |
| 102 | |
| 103 | let _saveContentForTab = function (tabId, withContent) { |
| 104 | if (!tabId || withContent === undefined || withContent === null) { |