We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4523cb commit 0beae0aCopy full SHA for 0beae0a
1 file changed
event/listener.php
@@ -97,6 +97,9 @@ public function compatibility_notice()
97
*/
98
public function service_worker_url()
99
{
100
- $this->template->assign_var('U_WEBPUSH_WORKER_URL', $this->controller_helper->route('phpbb_webpushnotifications_ucp_push_worker_controller'));
+ if (!$this->template->retrieve_var('U_WEBPUSH_WORKER_URL'))
101
+ {
102
+ $this->template->assign_var('U_WEBPUSH_WORKER_URL', $this->controller_helper->route('phpbb_webpushnotifications_ucp_push_worker_controller'));
103
+ }
104
}
105
0 commit comments