Skip to content

Commit

Permalink
Update WME Route Speeds (MapOMatic fork).js
Browse files Browse the repository at this point in the history
Adding a check for WazeWrap.Ready
  • Loading branch information
justins83 authored Nov 13, 2018
1 parent 35d38cb commit 97950c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WME Route Speeds (MapOMatic fork).js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var meta = function () {/*
// @name WME Route Speeds (MapOMatic fork)
// @description Shows segment's speed in a route.
// @include /^https:\/\/(www|beta)\.waze\.com\/(?!user\/)(.{2,6}\/)?editor\/?.*$/
// @version 2018.08.30.001
// @version 2018.11.13.001
// @grant none
// @namespace https://greasyfork.org/pl/scripts/4393-wme-route-speeds
// @require https://greasyfork.org/scripts/24851-wazewrap/code/WazeWrap.js
Expand Down Expand Up @@ -181,7 +181,7 @@ var leftHand = false;
//------------------------------------------------------------------------------------------------
function bootstrapWMERouteSpeeds()
{
if(!window.W.map) {
if(!window.W.map && !WazeWrap.Ready) {
console.log('WME Route Speeds: Waiting for WME...');
setTimeout(bootstrapWMERouteSpeeds, 1000);
return;
Expand Down

0 comments on commit 97950c6

Please sign in to comment.