vue-intergrall-plugins 0.0.267 → 0.0.268

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": "vue-intergrall-plugins",
3
- "version": "0.0.267",
3
+ "version": "0.0.268",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -126,10 +126,10 @@ export default {
126
126
  },
127
127
  methods: {
128
128
  returnCurrentClass(isDoc) {
129
- return `fs-2 cursor-pointer ${isDoc == 'pdf' ? 'text-red' : 'text-blue'}`
129
+ return `fs-2 cursor-pointer ${typeof isDoc == 'string' && isDoc.indexOf('pdf') > -1 ? 'text-red' : 'text-blue'}`
130
130
  },
131
131
  returnCurrentIcon(isDoc) {
132
- return isDoc == 'pdf' ? ['fas', 'file-pdf'] : ['fas', 'file-alt']
132
+ return typeof isDoc == 'string' && isDoc.indexOf('pdf') > -1 ? ['fas', 'file-pdf'] : ['fas', 'file-alt']
133
133
  },
134
134
  openFile(url, isImg) {
135
135
  const width = window.innerWidth