Skip to content

Commit

Permalink
Fix the build
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtelnov committed Jul 30, 2023
1 parent e659918 commit 370e43b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dependencies": {
"jspdf": "^2.3.1",
"node-interval-tree": "^1.3.3",
"survey-core": "../survey-library/build/survey-core"
"survey-core": "latest"
},
"devDependencies": {
"@types/jest": "^23.3.3",
Expand Down
6 changes: 4 additions & 2 deletions src/survey.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { SurveyModel, Question, EventBase, hasLicense } from 'survey-core';
import { SurveyModel, Question, EventBase } from 'survey-core';
import * as SurveyCore from 'survey-core';
import { IDocOptions, DocController } from './doc_controller';
import { FlatSurvey } from './flat_layout/flat_survey';
import { PagePacker } from './page_layout/page_packer';
Expand Down Expand Up @@ -32,7 +33,8 @@ export class SurveyPDF extends SurveyModel {
* > You can enable this property only if you have a SurveyJS PDF Generator [commercial license](https://surveyjs.io/pricing). It is illegal to enable this property without a license.
*/
public get haveCommercialLicense(): boolean {
if(!!hasLicense && hasLicense(2)) return true;
const f = SurveyCore.hasLicense;
if(!!f && f(2)) return true;
return this._haveCommercialLicense;
}
public set haveCommercialLicense(val: boolean) {
Expand Down

0 comments on commit 370e43b

Please sign in to comment.