Comparing version 0.1.0 to 0.1.1
12
index.js
@@ -25,4 +25,4 @@ window = window || { location: { hostname: "3vot.com", protocol: "http" } }; | ||
_3vot.frontpoint= options.frontpoint || "http://daulau2emlz5i.cloudfront.net"; | ||
_3vot.domain= options.domain || "//3vot.com"; | ||
_3vot.path= _3vot.domain+"/"+_3vot.user_name+"/"+package.name; | ||
_3vot.domain= ""; //options.domain || "//3vot.com"; | ||
_3vot.path= package.name; //_3vot.domain+"/"+_3vot.user_name+"/"+package.name; | ||
_3vot.host= _3vot.frontpoint.split("://")[1]; | ||
@@ -53,8 +53,2 @@ _3vot.el = document.getElementById('_3vot_' + package.name); | ||
if(width <= 550) _3vot.device = "phone"; | ||
else if(width <= 1024) _3vot.device = "tablet"; | ||
else if(width > 1024) _3vot.device = "desktop"; | ||
else _3vot.device = "desktop"; | ||
if(!fileToLoad) return console.error("Could not determine a file to load from package.json threevot.screens. 3VOT will load index.js please fix package.json of your app."); | ||
@@ -68,3 +62,3 @@ return fileToLoad; | ||
script.type = 'text/javascript'; | ||
script.src = _3vot.path + '/' + fileToCall + '.js?' + _3vot.unique_query_string; | ||
script.src = fileToCall + '.js?' + _3vot.unique_query_string; | ||
@@ -71,0 +65,0 @@ document.getElementsByTagName('head')[0].appendChild(script); |
{ | ||
"name": "3vot", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
17961
450