diff options
author | Kohei Suzuki | 2013-07-10 12:07:25 +0900 |
---|---|---|
committer | Kohei Suzuki | 2013-07-10 12:11:21 +0900 |
commit | eedba602a516b14bc55acc42d07d3867abeb5cae (patch) | |
tree | 29312df5ac14f73a30bc22d8398b6f4fb3fab46b /tombloo.js | |
parent | b84dff2ba1959eb2385e8ce88016f639a731efa0 (diff) | |
download | vimperator-plugins-eedba602a516b14bc55acc42d07d3867abeb5cae.tar.bz2 |
Support Tombfix
Diffstat (limited to 'tombloo.js')
-rw-r--r-- | tombloo.js | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -103,12 +103,14 @@ commands.addUserCommand( // helper --- function getTombloo() { - const serviceId = '@brasil.to/tombloo-service;1'; + const serviceIds = ['@tombfix.github.io/tombfix-service;1', '@brasil.to/tombloo-service;1']; - if (!Cc[serviceId]) - throw new Error('Tombloo is not found. install from http://github.com/to/tombloo/wikis'); - - return Cc[serviceId].getService().wrappedJSObject; + for each (let serviceId in serviceIds) { + if (Cc[serviceId]) { + return Cc[serviceId].getService().wrappedJSObject; + } + } + throw new Error('Tombloo or Tombfix is not found. install from https://github.com/tombfix/core'); } function getContext() { |