Skip to content

Commit

Permalink
chore: Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CatchABus committed Oct 27, 2023
1 parent 3a2cf4b commit 836ea9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/svelte-hmr/lib/make-hot.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ const renderApplyHmr = ({
emitCss,
imports = [
`import * as ${globalName} from ${JSON.stringify(hotApiImport)}`,
`import { adapter as ${importAdapterName} } from ${JSON.stringify(adapterImport)}`,
`import { adapter as ${importAdapterName} } from ${JSON.stringify(
adapterImport
)}`,
],
}) =>
// this silly formatting keeps all original characters in their position,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export const adapter = class ProxyAdapterNative extends ProxyAdapterDom {
const newPageElement = this.nativePageElement

// svelte-native uses navigateFrom event + e.isBackNavigation to know when to $destroy the component.
// To keep that behaviour after refresh, we move event handler from old native view to the new one using
// To keep that behaviour after refresh, we move event handler from old native view to the new one using
// __navigateFromHandler property that svelte-native provides us with.
const navigateFromHandler = oldNativeView.__navigateFromHandler
if (navigateFromHandler) {
Expand Down

0 comments on commit 836ea9d

Please sign in to comment.