Skip to content

Commit

Permalink
fix: realtime defaults to false
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Feb 14, 2024
1 parent e03e0e4 commit c6fb16c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,10 @@ async function fileEvent(event) {

const isImport = input.getAttribute('import')
const isRealtime = input.getAttribute('realtime')
if (isRealtime !== 'false' && (isImport || isImport == "")) {
Import(input)
if (isRealtime && isRealtime !== 'false') {
if (isImport || isImport == "") {
Import(input)
}
}
}
} catch (error) {
Expand Down

0 comments on commit c6fb16c

Please sign in to comment.