File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public static function get_iframe_url() {
54
54
'widget_id ' => '' ,
55
55
);
56
56
}
57
- return TawkHelper::get_base_url () . '/generic/widgets?currentWidgetId= ' . $ widget ['widget_id ' ] . '¤tPageId= ' . $ widget ['page_id ' ];
57
+ return TawkHelper::get_base_url () . '/generic/widgets?currentWidgetId= ' . $ widget ['widget_id ' ] . '¤tPageId= ' . $ widget ['page_id ' ] . ' &pltf=drupal ' ;
58
58
}
59
59
60
60
/**
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ jQuery(document).ready(function() {
7
7
tawktoSettings = Drupal . settings . tawkto || { } ;
8
8
9
9
var currentHost = window . location . protocol + "//" + window . location . host ;
10
- var url = tawktoSettings . iframeUrl + "&pltf=drupal& parentDomain=" + currentHost ;
10
+ var url = tawktoSettings . iframeUrl + "&parentDomain=" + currentHost ;
11
11
12
12
jQuery ( "#tawkIframe" ) . attr ( "src" , url ) ;
13
13
Original file line number Diff line number Diff line change @@ -48,14 +48,13 @@ function tawk_to_preprocess_page(&$variables) {
48
48
}
49
49
50
50
// prepare visibility
51
- $currentUrl = $base_url.$_SERVER['REQUEST_URI'];
51
+ $current_url = $base_url.$_SERVER['REQUEST_URI'];
52
52
53
53
if (false === $options->always_display) {
54
- $showPages = json_decode($options->show_oncustom);
54
+ $show_pages = json_decode($options->show_oncustom);
55
55
$show = false;
56
56
57
-
58
- if (UrlPatternMatcher::match($currentUrl, $showPages)) {
57
+ if (UrlPatternMatcher::match($current_url, $show_pages)) {
59
58
$show = true;
60
59
}
61
60
@@ -80,9 +79,9 @@ function tawk_to_preprocess_page(&$variables) {
80
79
$hide_pages = json_decode($options->hide_oncustom);
81
80
$show = true;
82
81
83
- $currentUrl = (string) $currentUrl ;
82
+ $current_url = (string) $current_url ;
84
83
85
- if (UrlPatternMatcher::match($currentUrl , $hide_pages)) {
84
+ if (UrlPatternMatcher::match($current_url , $hide_pages)) {
86
85
$show = false;
87
86
}
88
87
You can’t perform that action at this time.
0 commit comments