Skip to content

Commit 8a2edca

Browse files
committed
update license
1 parent 9fc0e66 commit 8a2edca

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

packages/core/src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { FormElementType, pluginConstructor } from './types';
22
import { useLicensedFetures } from './utils';
33

4-
export const PACKAGE_LICENSE_URL = 'https://formsjs.io/documentation/v1/licensing';
4+
export const PACKAGE_LICENSE_URL = 'https://github.com/form-js/forms.js/tree/master/docs/v1/licensing';
55

66
export const licensePlateClass = '#';
77
export const licensePlateStyle =

packages/core/src/form.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -595,14 +595,7 @@ export class Form {
595595
}
596596

597597
private createInvalidElement() {
598-
const invalid = document.createElement(LINK_ELEMENT);
599-
invalid.setAttribute(HREF_ATTRIBUTE, PACKAGE_LICENSE_URL);
600-
invalid.className = licensePlateClass;
601-
invalid.style.cssText = licensePlateStyle;
602-
const text = document.createElement(SPAN_ELEMENT);
603-
text.innerText = getLicenseText(this._licenseState);
604-
mountElement(text, invalid);
605-
if (this._parent) mountElement(invalid, this._parent);
598+
606599
}
607600

608601
/**

0 commit comments

Comments
 (0)