We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1564c34 commit c731aabCopy full SHA for c731aab
src/getAttribute.js
@@ -13,6 +13,10 @@ Element.prototype.getAttribute = function (name) {
13
value = localStorage.getItem('clientId')
14
else if (value === '$session_id')
15
value = localStorage.getItem('session_id')
16
+ else if (value === '$innerWidth')
17
+ value = window.innerWidth
18
+ else if (value === '$innerHeight')
19
+ value = window.innerHeight
20
else if (typeof value === 'string') {
21
if (value.startsWith('$search')) {
22
const searchParams = new URLSearchParams(window.location.search);
0 commit comments