@cmstops/pro-compo 0.1.50 → 0.1.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -74,10 +74,11 @@ const _sfc_main = defineComponent({
74
74
  const getBase64 = (imgUrl) => {
75
75
  window.URL = window.URL || window.webkitURL;
76
76
  const xhr = new XMLHttpRequest();
77
- xhr.open("get", imgUrl, true);
77
+ const sparator = imgUrl.includes("?") ? "&" : "?";
78
+ xhr.open("get", `${imgUrl}${sparator}_t=${new Date().getTime()}`, true);
78
79
  xhr.responseType = "blob";
79
80
  xhr.send();
80
- xhr.onload = function() {
81
+ xhr.onload = () => {
81
82
  if (xhr.status === 200) {
82
83
  const blob = xhr.response;
83
84
  const oFileReader = new FileReader();
@@ -81,10 +81,11 @@ const _sfc_main = vue.defineComponent({
81
81
  const getBase64 = (imgUrl) => {
82
82
  window.URL = window.URL || window.webkitURL;
83
83
  const xhr = new XMLHttpRequest();
84
- xhr.open("get", imgUrl, true);
84
+ const sparator = imgUrl.includes("?") ? "&" : "?";
85
+ xhr.open("get", `${imgUrl}${sparator}_t=${new Date().getTime()}`, true);
85
86
  xhr.responseType = "blob";
86
87
  xhr.send();
87
- xhr.onload = function() {
88
+ xhr.onload = () => {
88
89
  if (xhr.status === 200) {
89
90
  const blob = xhr.response;
90
91
  const oFileReader = new FileReader();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "0.1.50",
3
+ "version": "0.1.51",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",