()
| 141 | public endpoints: Record<string, Function> = {}; |
| 142 | |
| 143 | getConfig(): Record<string, any> { |
| 144 | if (!this.config) { |
| 145 | if (electronConfig.productName === 'Todo My App Name') { |
| 146 | this.config = { |
| 147 | header_title: 'Botasaurus', |
| 148 | right_header: { |
| 149 | text: 'Love It? Star It! ★', |
| 150 | link: 'https://github.com/omkarcloud/botasaurus', |
| 151 | }, |
| 152 | readme: getReadme(), |
| 153 | }; |
| 154 | }else { |
| 155 | this.config = { |
| 156 | header_title: electronConfig.productName, |
| 157 | right_header: this.emailSupport ? { |
| 158 | text: 'Need Help? Mail Us!', |
| 159 | link: createEmailUrl(this.emailSupport), |
| 160 | } : { |
| 161 | text: '', |
| 162 | link: '', |
| 163 | }, |
| 164 | readme: getReadme(), |
| 165 | }; |
| 166 | } |
| 167 | |
| 168 | } |
| 169 | this.config.enable_cache = this.cache |
| 170 | return this.config; |
| 171 | } |
| 172 | |
| 173 | configure( |
| 174 | { |
no test coverage detected