Skip to content

Commit 2323480

Browse files
committed
fix platform version reporting
1 parent 46500a0 commit 2323480

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/TawktoGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ public function getIframe() {
561561
</div>
562562
<script>
563563
var currentHost = window.location.protocol + "//" + window.location.host;
564-
var url = "<?php echo $iframeUrl; ?>&pltf=drupal&pltfv=8&parentDomain=" + currentHost;
564+
var url = "<?php echo $iframeUrl; ?>&pltf=drupal&pltfv=<?php echo explode('.', \Drupal::VERSION)[0]; ?>&parentDomain=" + currentHost;
565565

566566
jQuery("#tawkIframe").attr("src", url);
567567

0 commit comments

Comments
 (0)