askbot-dragon 1.5.70 → 1.5.71

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "1.5.70",
3
+ "version": "1.5.71",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -324,26 +324,21 @@ export default {
324
324
  if (res.data || res.bodyText) {
325
325
  if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
326
326
  // this.copy = res.data
327
- if (isMobile()) {
328
- setTimeout(() => {
329
- const iframe = document.createElement("iframe");
330
- iframe.setAttribute("hidden", "hidden");
331
- document.body.insertBefore(iframe, null);
332
- iframe.onload = () => {
333
- if (iframe) {
334
- console.log("iframe onload....")
335
- iframe.setAttribute('src', 'about:blank');
336
- }
337
- };
338
- iframe.setAttribute("src", res.data);
339
- this.close()
340
- }, 100)
341
- } else {
342
- let a = document.createElement('a')
343
- a.href = res.data
344
- a.download = (this.title) + fileType
345
- a.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true, view: window }))
346
- }
327
+ let a = document.createElement('a')
328
+ a.href = res.data
329
+ a.download = (this.title) + fileType
330
+ a.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true, view: window }))
331
+ // if (isMobile()) {
332
+ // let a = document.createElement('a')
333
+ // a.href = res.data
334
+ // a.download = (this.title) + fileType
335
+ // a.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true, view: window }))
336
+ // } else {
337
+ // let a = document.createElement('a')
338
+ // a.href = res.data
339
+ // a.download = (this.title) + fileType
340
+ // a.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true, view: window }))
341
+ // }
347
342
  return
348
343
  } else {
349
344
  // setTimeout(() =>{