()
| 1166 | } |
| 1167 | |
| 1168 | private async buttonclick() { |
| 1169 | this.singleObj.setEpisode(j.$('#malEpisodes').val()); |
| 1170 | if (j.$('#malVolumes').length) this.singleObj.setVolume(j.$('#malVolumes').val()); |
| 1171 | this.singleObj.handleScoreCheckbox(j.$('#malUserRating').val()); |
| 1172 | this.singleObj.handleStatusCheckbox(j.$('#malStatus').val()); |
| 1173 | if (!this.page.isSyncPage(this.url)) { |
| 1174 | this.singleObj.setStreamingUrl(this.url); |
| 1175 | } |
| 1176 | |
| 1177 | const rerun = await this.searchObj.openCorrectionCheck(); |
| 1178 | |
| 1179 | if (rerun) { |
| 1180 | // If malUrl changed |
| 1181 | this.handlePage(); |
| 1182 | return; |
| 1183 | } |
| 1184 | |
| 1185 | this.syncHandling() |
| 1186 | .then(() => { |
| 1187 | return this.singleObj.update(); |
| 1188 | }) |
| 1189 | .then(() => { |
| 1190 | this.fillUI(); |
| 1191 | }); |
| 1192 | } |
| 1193 | |
| 1194 | private browsingtime: number | undefined = Date.now(); |
| 1195 |
no test coverage detected