Version 4.7.6
This commit is contained in:
1 parent
8ba7d43898
commit
7b7404e741
1085 files changed
+30590
-7837
No files matched your search
+2
-1
@@ -126,6 +126,7 @@
|
||||
var widgetID = widgetAttributes.id.replace( 'block_', '' );
|
||||
var blockID = widgetAttributes['data-blockid'];
|
||||
var blockParams = widgetAttributes['data-blockparams'];
|
||||
var externalRef = btoa( window.location.href ); // This is required to let community know this is external AND where it is (for redirects and stuff)
|
||||
|
||||
_widgets[ widgetID ] = {
|
||||
blockID: blockID
|
||||
@@ -135,7 +136,7 @@
|
||||
var iframe;
|
||||
|
||||
iframe = document.createElement('iframe');
|
||||
iframe.src = _baseURL + '?widgetid=' + widgetID + '&blockid=' + blockID + ( blockParams ? '&' + blockParams : '' );
|
||||
iframe.src = _baseURL + '?widgetid=' + widgetID + '&blockid=' + blockID + `&externalref=${externalRef}` + ( blockParams ? '&' + blockParams : '' );
|
||||
iframe.id = 'ipsFrame_' + widgetID;
|
||||
iframe.style.width = '100%';
|
||||
iframe.style.border = '0';
|
||||
|
||||
Reference in new issue
Block a user