Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI

on: [push, pull_request]

jobs:
qa:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12'
- uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- run: yarn install
- name: Lint
run: yarn lint
2 changes: 1 addition & 1 deletion src/fetch_response.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class FetchResponse {
async renderTurboStream () {
if (this.isTurboStream) {
if (window.Turbo) {
Turbo.renderStreamMessage(await this.text)
window.Turbo.renderStreamMessage(await this.text)
} else {
console.warn('You must set `window.Turbo = Turbo` to automatically process Turbo Stream events with request.js')
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FetchRequest } from './fetch_request'
import { FetchResponse } from './fetch_response'

export { FetchRequest, FetchResponse }
export { FetchRequest, FetchResponse }