mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 15:36:22 +08:00
12 lines
192 B
Ruby
12 lines
192 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class MarvinJsService
|
||
|
def self.url
|
||
|
ENV['MARVINJS_URL']
|
||
|
end
|
||
|
|
||
|
def self.enabled?
|
||
|
!ENV['MARVINJS_URL'].nil? || !ENV['MARVINJS_API_KEY'].nil?
|
||
|
end
|
||
|
end
|