askbot-dragon 1.7.73-beta → 1.7.74-beta

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.7.73-beta",
3
+ "version": "1.7.74-beta",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -531,7 +531,7 @@ export default {
531
531
  let codeList = doc.querySelectorAll('pre code')
532
532
  codeList.forEach(ele =>{
533
533
  let list = ele.getElementsByClassName("code_copy_btn")
534
- if(list.length == 0 && ele.classList.indexOf("hljs") != "-1") {
534
+ if(list.length == 0 && ele.classList.contains("hljs")) {
535
535
  let text = ele.innerText
536
536
  let btnId = uuidv4();
537
537
  let copy = document.createElement('div')