isRemote()) { return "/nova-api/scripts/{$this->name}"; } return $this->path; } /** * Get the response headers for the asset. * * @return array */ public function toResponseHeaders() { return [ 'Content-Type' => 'application/javascript', ]; } }