tml-js-browser
Advanced tools
Comparing version 0.4.18 to 0.4.21
@@ -94,3 +94,3 @@ /** | ||
includeAgent: function(app, options, callback) { | ||
var agent_host = options.host || "https://cdn.translationexchange.com/tools/agent/stable/agent.min.js"; | ||
var agent_host = options.host || "https://tools.translationexchange.com/agent/stable/agent.min.js"; | ||
@@ -103,2 +103,4 @@ if (options.cache) { | ||
tml.logger.debug("loading agent from " + agent_host); | ||
utils.addJS(window.document, 'tml-agent', agent_host, function() { | ||
@@ -105,0 +107,0 @@ Trex.init(app.key, options); |
{ | ||
"name": "tml-js-browser", | ||
"description": "Translation plugin for browsers.", | ||
"version": "0.4.18", | ||
"version": "0.4.21", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Michael Berkovich", |
var fs = require('fs'); | ||
var path = require('path'); | ||
var express = require('express'); | ||
var pckg = require('../../package.json'); | ||
@@ -14,3 +13,3 @@ var router = express.Router(); | ||
router.get('/tml.js', function(req, res) { | ||
var filePath = path.join(__dirname, '../../dist', 'tml-'+pckg.version+'.js'); | ||
var filePath = path.join(__dirname, '../../dist', 'tml.js'); | ||
console.log("Serving " + filePath); | ||
@@ -23,3 +22,3 @@ fs.readFile(filePath, 'utf8', function(err,data){ | ||
router.get('/tml.min.js', function(req, res) { | ||
var filePath = path.join(__dirname, '../../dist', 'tml-'+pckg.version+'.min.js'); | ||
var filePath = path.join(__dirname, '../../dist', 'tml.min.js'); | ||
console.log("Serving " + filePath); | ||
@@ -26,0 +25,0 @@ fs.readFile(filePath, 'utf8', function(err,data){ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10023
496074