adaptivejs
Advanced tools
Comparing version 2.0.3 to 2.0.4
{ | ||
"name": "adaptivejs", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "A framework for creating adaptive websites.", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -21,2 +21,3 @@ define([ | ||
} catch (e) { | ||
console.error('Error adding log data to local storage:\n' + e); | ||
return; | ||
@@ -78,3 +79,12 @@ } | ||
Logger.clearData = function() { | ||
localStorage.removeItem(TIMING_POINTS); | ||
if (!Utils.supportsLocalStorage()) { | ||
return; | ||
} | ||
try { | ||
localStorage.removeItem(TIMING_POINTS); | ||
} catch (e) { | ||
console.error('Error removing log data from local storage:\n' + e); | ||
return; | ||
} | ||
}; | ||
@@ -81,0 +91,0 @@ |
@@ -12,3 +12,6 @@ define(['adaptivejs/utils/general'], function(adaptiveUtils) { | ||
cachedBuildScript = libs.mobify ? libs.mobify : libs.adaptation; | ||
// In 2.0 and greater, the assumption is that the project uses | ||
// a boot loader which is loaded by the Mobify tag. This boot | ||
// loader always injects a build script named 'adaptation' | ||
cachedBuildScript = libs.adaptation; | ||
} | ||
@@ -15,0 +18,0 @@ |
Sorry, the diff of this file is not supported yet
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
658728
86
7534