| @@ -21,11 +21,8 @@ | ||
| 21 | 21 | }).then(function (response) { |
| 22 | 22 | if (!response.ok) { |
| 23 | 23 | return; |
| 24 | 24 | } |
| 25 | - if (204 === response.status) { | |
| 26 | - return; | |
| 27 | - } | |
| 28 | 25 | return response.json(); |
| 29 | 26 | }).then(function (data) { |
| 30 | 27 | if (!data) { |
| 31 | 28 | return; |
| @@ -39,9 +36,10 @@ | ||
| 39 | 36 | globals === null || globals === void 0 || globals.refreshGlobalData(); |
| 40 | 37 | globals === null || globals === void 0 || globals.populateGlobalData(); |
| 41 | 38 | } |
| 42 | 39 | function reloadCanvasDesignSyncStyles(_ref) { |
| 43 | - var url = _ref.url; | |
| 40 | + var url = _ref.url, | |
| 41 | + version = _ref.version; | |
| 44 | 42 | var previewFrame = document.getElementById('elementor-preview-iframe'); |
| 45 | 43 | if (!(previewFrame !== null && previewFrame !== void 0 && previewFrame.contentDocument)) { |
| 46 | 44 | return; |
| 47 | 45 | } |
| @@ -51,9 +49,9 @@ | ||
| 51 | 49 | link.id = SYNC_STYLESHEET_ID; |
| 52 | 50 | link.rel = 'stylesheet'; |
| 53 | 51 | previewFrame.contentDocument.head.appendChild(link); |
| 54 | 52 | } |
| 55 | - link.href = url; | |
| 53 | + link.href = url + '?ver=' + version; | |
| 56 | 54 | } |
| 57 | 55 | function onClassesUpdated(event) { |
| 58 | 56 | var context = event.detail.context; |
| 59 | 57 | if (context !== 'frontend') { |