mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Export function
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
35f6043d06
commit
1d5b16395f
@ -17,7 +17,7 @@ limitations under the License.
|
|||||||
import {el} from "./html.js";
|
import {el} from "./html.js";
|
||||||
import {mountView} from "./utils.js";
|
import {mountView} from "./utils.js";
|
||||||
|
|
||||||
function insertAt(parentNode, idx, childNode) {
|
export function insertAt(parentNode, idx, childNode) {
|
||||||
const isLast = idx === parentNode.childElementCount;
|
const isLast = idx === parentNode.childElementCount;
|
||||||
if (isLast) {
|
if (isLast) {
|
||||||
parentNode.appendChild(childNode);
|
parentNode.appendChild(childNode);
|
||||||
|
Loading…
Reference in New Issue
Block a user