mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 15:23:29 -05:00
Fix reference to old range method.
Now a function instead.
This commit is contained in:
parent
d2e9d2214b
commit
02a647c574
3 changed files with 5 additions and 3 deletions
|
@ -3168,7 +3168,8 @@ proto.makeLink = function ( url ) {
|
|||
if ( protocolEnd ) {
|
||||
while ( url[ protocolEnd ] === '/' ) { protocolEnd += 1; }
|
||||
}
|
||||
range._insertNode(
|
||||
insertNodeInRange(
|
||||
range,
|
||||
this._doc.createTextNode( url.slice( protocolEnd ) )
|
||||
);
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2121,7 +2121,8 @@ proto.makeLink = function ( url ) {
|
|||
if ( protocolEnd ) {
|
||||
while ( url[ protocolEnd ] === '/' ) { protocolEnd += 1; }
|
||||
}
|
||||
range._insertNode(
|
||||
insertNodeInRange(
|
||||
range,
|
||||
this._doc.createTextNode( url.slice( protocolEnd ) )
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue