Update index.js
This commit is contained in:
parent
10a2782f85
commit
67c4912c62
1 changed files with 5 additions and 0 deletions
|
@ -38,6 +38,11 @@ const Map = {
|
|||
init: function () {
|
||||
var self = Map
|
||||
|
||||
// prevent right clicks on the main canvas, so as to not get in the way of our right clicks
|
||||
$('#wrapper').on('contextmenu', function (e) {
|
||||
return false
|
||||
})
|
||||
|
||||
$('.starMap').click(function () {
|
||||
if ($(this).is('.starred')) self.unstar()
|
||||
else self.star()
|
||||
|
|
Loading…
Reference in a new issue