Skip to content

Commit c6fb16c

Browse files
committed
fix: realtime defaults to false
1 parent e03e0e4 commit c6fb16c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/client.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,10 @@ async function fileEvent(event) {
177177

178178
const isImport = input.getAttribute('import')
179179
const isRealtime = input.getAttribute('realtime')
180-
if (isRealtime !== 'false' && (isImport || isImport == "")) {
181-
Import(input)
180+
if (isRealtime && isRealtime !== 'false') {
181+
if (isImport || isImport == "") {
182+
Import(input)
183+
}
182184
}
183185
}
184186
} catch (error) {

0 commit comments

Comments
 (0)