| 416 | 416 | const rememberKey = `Proxy_SkipConfirm_${getStringHash(oai_settings.reverse_proxy)}`; |
| 417 | 417 | const skipConfirm = localStorage.getItem(rememberKey) === 'true'; |
| 418 | 418 | |
| 419 | 419 | const confirmation = skipConfirm || await Popup.show.confirm('Connecting To Proxy', `<span>Are you sure you want to connect to the following proxy URL?</span><var>${DOMPurify.sanitize(oai_settings.reverse_proxy)}</var>`, {); |
| 420 | | - customInputs: [{ id: 'proxy-remember', label: 'Don\'t ask again for this proxy URL' }], |
| 420 | + |
| 421 | | - onClose: popup => { |
| 422 | | - if (popup.result) { |
| 423 | | - const rememberValue = popup.inputResults.get('proxy-remember'); |
| 424 | | - localStorage.setItem(rememberKey, String(rememberValue)); |
| 425 | | - } |
| 426 | | - }, |
| 427 | | - }); |
| 428 | 421 | if (!confirmation) { |
| 429 | 422 | toastr.error('Update or remove your reverse proxy settings.'); |
| 430 | 423 | setOnlineStatus('no_connection'); |
| 431 | 424 | resultCheckStatus(); |
| 432 | 425 | throw new Error('Proxy connection denied.'); |
| 433 | 426 | } |
| 427 | + |
| 428 | + localStorage.setItem(rememberKey, String(true)); |
| 434 | 429 | } |
| 435 | 430 | |
| 436 | 431 | /** |