commonplace
Advanced tools
Comparing version 0.1.11 to 0.1.12
@@ -260,3 +260,3 @@ var fs = require('fs'); | ||
var locale = match[1].toLowerCase().split('_'); | ||
if (locale[1]) { | ||
if (locale[1] && locale[1].length == 2) { | ||
locale[1] = locale[1].toUpperCase(); | ||
@@ -263,0 +263,0 @@ } |
{ | ||
"name": "commonplace", | ||
"version": "0.1.11", | ||
"version": "0.1.12", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "url": "git://github.com/mozilla/commonplace.git", |
@@ -91,3 +91,3 @@ define('urls', | ||
var media = function(path) { | ||
var media_url = document.body.getAttribute('data-media') || settings.media_url; | ||
var media_url = settings.media_url; | ||
if (media_url[media_url.length - 1] !== '/') { | ||
@@ -94,0 +94,0 @@ media_url += '/'; |
@@ -10,2 +10,3 @@ define('views/debug', | ||
notification.notification({message: 'localStorage cleared', timeout: 1000}); | ||
}).on('click', '#clear-cookies', function(e) { | ||
@@ -19,2 +20,3 @@ var cookies = document.cookie.split(';'); | ||
notification.notification({message: 'cookies cleared', timeout: 1000}); | ||
}).on('click', '.cache-menu a', function(e) { | ||
@@ -25,2 +27,3 @@ e.preventDefault(); | ||
$('#cache-inspector').html(utils.escape_(data)); | ||
}).on('click', '#submit-debug', function(e) { | ||
@@ -27,0 +30,0 @@ e.preventDefault(); |
Sorry, the diff of this file is not supported yet
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
10
852654
77
11279