Sha256: 0425086099fda727922639f0c797bfd77dfd960ab4517f6b630ee5079f866679

Contents?: true

Size: 366 Bytes

Versions: 1

Compression:

Stored size: 366 Bytes

Contents

window.Resizing ||= {}
window.Resizing.Rails ||= {}

class VideoFetcher {
  constructor(self_url) {
    this.self_url = self_url
  }

  fetch() {
    return fetch(this.self_url, {method: 'GET', credentials: 'same-origin', headers: {'Content-Type': 'application/json'}})
    .then(response => response.json())
  }
}

window.Resizing.Rails.VideoFetcher = VideoFetcher

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
resizing-rails-0.1.0.pre app/assets/javascripts/resizing/rails/video_fetcher.js