You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/admin-sdk/api-reference/window.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,24 +66,24 @@ No parameters required.
66
66
#### Return value:
67
67
Returns a promise without data.
68
68
69
-
### Get an unique identifier for the window
69
+
### Get a unique identifier for the window
70
70
71
71
> Available since Shopware v6.7.1.0
72
72
73
73
When it comes to session handling it can be useful to have a unique identifier for your window.
74
74
75
-
### Usage:
75
+
####Usage:
76
76
```ts
77
77
sw.window.getId()
78
78
```
79
79
80
-
### Parameters
80
+
####Parameters:
81
81
No parameters required
82
82
83
-
### Return value:
83
+
####Return value:
84
84
A `string` representing an unique identifier for the current window
85
85
86
-
### Example
86
+
####Example:
87
87
In this example we check if the `sessionStorage` contains data from a former window. This can happen if a user uses the *Duplicate Tab* feature of some browsers.
0 commit comments