mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
Fix export html/pdf problem in Qt 5.15.5 (#2199)
maybe related https://github.com/vnotex/vnote/issues/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) ```
This commit is contained in:
parent
8197012bcb
commit
53e2b3bfa8
@ -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) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user