mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
Fix crush on pdf document opening
This commit is contained in:
@ -467,7 +467,7 @@
|
||||
};
|
||||
PDFEditorApi.prototype.getGraphicController = function () {
|
||||
let oDoc = this.getPDFDoc();
|
||||
return oDoc.GetController();
|
||||
return oDoc ? oDoc.GetController() : null;
|
||||
};
|
||||
PDFEditorApi.prototype.can_CopyCut = function() {
|
||||
if (!this.DocumentRenderer)
|
||||
|
||||
Reference in New Issue
Block a user