Skip to content

Commit 0beae0a

Browse files
committed
Do not redefine worker URL template variable if exists
1 parent d4523cb commit 0beae0a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

event/listener.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ public function compatibility_notice()
9797
*/
9898
public function service_worker_url()
9999
{
100-
$this->template->assign_var('U_WEBPUSH_WORKER_URL', $this->controller_helper->route('phpbb_webpushnotifications_ucp_push_worker_controller'));
100+
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+
}
101104
}
102105
}

0 commit comments

Comments
 (0)