Skip to content

Commit

Permalink
Merge pull request #920 from binford2k/fix_file_loading
Browse files Browse the repository at this point in the history
The better custom css/js loading fix
  • Loading branch information
binford2k committed Feb 17, 2020
2 parents 6e301bd + a4ee560 commit 52297f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/showoff.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1988,7 +1988,7 @@ def manage_client_cookies(presenter=false)
if ['supplemental', 'print'].include? what
data = send(what, opt)
elsif File.file? what
data = File.read(what)
data = File.open(what)
else
data = send(what)
end
Expand Down

0 comments on commit 52297f7

Please sign in to comment.