From 5ea5b82994134ea507bad85b6fcbc695cb98c8a2 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sat, 1 Feb 2020 16:25:00 +0100 Subject: [PATCH] Docs: Fix typo --- doc/user/events/widget.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/user/events/widget.rst b/doc/user/events/widget.rst index f4ce80908d..5b2035d0c5 100644 --- a/doc/user/events/widget.rst +++ b/doc/user/events/widget.rst @@ -186,11 +186,11 @@ You can style the button using the ``pretix-button`` CSS class. Dynamically opening the widget ------------------------------ -You can get the behaviour of the pretix Button without a button at all, so you can trigger it from your own code in +You can get the behavior of the pretix Button without a button at all, so you can trigger it from your own code in response to a user action. Usually, this will open an overlay with your ticket shop, however in some cases, such as missing HTTPS encryption on your case or a really small screen (mobile), it will open a new tab instead of an overlay. Therefore, make sure you call this *in direct response to a user action*, otherwise most browser will block it as an -unwanted popup. +unwanted pop-up. .. js:function:: window.PretixWidget.open(target_url [, voucher [, subevent [, items, [, widget_data [, skip_ssl_check ]]]]])