forked from GNUsocial/gnu-social
don't try to initialize the mapstraction canvas if it doesn't exist
This commit is contained in:
parent
c4a8a6776e
commit
fdf3a23da7
@ -156,7 +156,8 @@ class MapstractionPlugin extends Plugin
|
|||||||
' var user = null; '.
|
' var user = null; '.
|
||||||
(($actionName == 'showstream') ? ' user = scrapeUser(); ' : '') .
|
(($actionName == 'showstream') ? ' user = scrapeUser(); ' : '') .
|
||||||
' var notices = scrapeNotices(user); ' .
|
' var notices = scrapeNotices(user); ' .
|
||||||
' showMapstraction($("#map_canvas"), notices); '.
|
' var canvas = $("#map_canvas")[0]; ' .
|
||||||
|
' if (typeof(canvas) != "undefined") { showMapstraction(canvas, notices); } '.
|
||||||
'});');
|
'});');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user