Skip to content

Commit c0057e2

Browse files
committed
added proper defaults for prefix and target
1 parent 2ea2413 commit c0057e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

draft-js-linkify-plugin/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const linkPlugin = (config = {}) => {
1616
// errors when upgrading as basically every styling change would become a major
1717
// breaking change. 1px of an increased padding can break a whole layout.
1818
const theme = config.theme ? config.theme : defaultTheme;
19-
const prefix = config.prefix ? config.prefix : null;
20-
const target = config.target ? config.target : null;
19+
const prefix = config.prefix ? config.prefix : 'http://';
20+
const target = config.target ? config.target : '_self';
2121
return {
2222
decorators: [
2323
{

0 commit comments

Comments
 (0)