pull/1/head
Joe Biellik 8 years ago
parent 3f79c98925
commit 1fd296f318

@ -3,6 +3,7 @@ var util = require('util');
var mongoose = require('mongoose');
module.exports = function () {
mongoose.Promise = global.Promise;
mongoose.connect(config.db);
mongoose.connection.once('open', function () {

@ -24,7 +24,7 @@ $(document).ready(function() {
$(window).on('hashchange', function() {
var value = location.hash.slice(1);
if ($('select#highlight option[value=' + value + ']').length) {
if (value && $('select#highlight option[value=' + value + ']').length) {
$('select#highlight').val(value);
} else {
$('select#highlight').val('');

Loading…
Cancel
Save