Skip to content

Commit

Permalink
fix: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pklatka committed Mar 27, 2024
1 parent ea1501c commit 903e8f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import dev.hotwire.turbo.errors.WebError
import dev.hotwire.turbo.errors.WebSslError
import dev.hotwire.turbo.visit.TurboVisitAction

const val REFRESH_SCRIPT = "typeof Turbo.session.refresh === 'function' " +
const val REFRESH_SCRIPT = "typeof Turbo.session.refresh === 'function'" +
"? Turbo.session.refresh(document.baseURI)" +
": Turbo.visit(document.baseURI, {action: 'replace', shouldCacheSnapshot: 'false'})"
": Turbo.visit(document.baseURI, { action: 'replace', shouldCacheSnapshot: 'false' })"

class RNVisitableView(context: Context) : LinearLayout(context), SessionSubscriber {

Expand Down
4 changes: 3 additions & 1 deletion packages/turbo/ios/RNVisitableView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

import UIKit

let REFRESH_SCRIPT = "typeof Turbo.session.refresh === 'function' ? Turbo.session.refresh(document.baseURI) : Turbo.visit(document.baseURI, {action: 'replace', shouldCacheSnapshot: 'false'})"
let REFRESH_SCRIPT = "typeof Turbo.session.refresh === 'function'" +
"? Turbo.session.refresh(document.baseURI)" +
": Turbo.visit(document.baseURI, { action: 'replace', shouldCacheSnapshot: 'false' })"

class RNVisitableView: UIView, RNSessionSubscriber {
var id: UUID = UUID()
Expand Down

0 comments on commit 903e8f8

Please sign in to comment.