Skip to content

Commit

Permalink
Fix export html/pdf problem in Qt 5.15.5 (#2199)
Browse files Browse the repository at this point in the history
maybe related #1942   export PDF cpu 100%

```
Critical:(markdownviewer.js:103) Uncaught TypeError: Failed to delete an indexed property from 'NodeList': Index property deleter is not supported.
[520896:520896:0801/171207.286744:INFO:CONSOLE(103)] "Uncaught TypeError: Failed to delete an indexed property from 'NodeList': Index property deleter is not supported.", source: file:///home/henices/.local/share/VNote/VNote/web/js/prism.js (103)
```
  • Loading branch information
henices committed Aug 1, 2022
1 parent 8197012 commit 53e2b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/extra/web/js/prism.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class PrismRenderer extends VxWorker {
let toolBarNodes = p_containerNode.querySelectorAll('div.code-toolbar > div.toolbar');
for (let i = 0; i < toolBarNodes.length; ++i) {
toolBarNodes[i].outerHTML = '';
delete toolBarNodes[i];
try { delete toolBarNodes[i]; } catch (err) {}
}
}
}
Expand Down

0 comments on commit 53e2b3b

Please sign in to comment.