diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-22 10:15:33 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-22 10:15:33 +0000 |
commit | 3582befdcd779e674855e58d63b06711ef6989bf (patch) | |
tree | 2cf46a40ad833e05e08264c3ec6eb65ca0ed83dc /modules/ui.py | |
parent | b0765a67888bac205cd8af55faec4e773d431feb (diff) | |
download | stable-diffusion-webui-gfx803-3582befdcd779e674855e58d63b06711ef6989bf.tar.gz stable-diffusion-webui-gfx803-3582befdcd779e674855e58d63b06711ef6989bf.tar.bz2 stable-diffusion-webui-gfx803-3582befdcd779e674855e58d63b06711ef6989bf.zip |
move Notification.requestPermission() entirely to javascript to possibly fix problem with secure context people are having on non-localhost
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ui.py b/modules/ui.py index ca611f8f..8925fbcb 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -857,12 +857,12 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo): outputs=[result]
)
- request_notifications = gr.Button(value='Request browser notifications')
+ request_notifications = gr.Button(value='Request browser notifications', elem_id="request_notifications")
request_notifications.click(
fn=lambda: None,
inputs=[],
outputs=[],
- _js='() => Notification.requestPermission()'
+ _js='function(){}'
)
interfaces = [
|