Don't use the new GM API on Tampermonkey yet. #1534

This commit is contained in:
ccd0 2017-10-17 20:36:42 -07:00
parent 3226a05c4f
commit 8bc6fe1ed3

View File

@ -510,7 +510,7 @@ do ->
# http://wiki.greasespot.net/Main_Page
# https://tampermonkey.net/documentation.php
if GM?.deleteValue?
if GM?.deleteValue? and window.BroadcastChannel and not GM_addValueChangeListener?
$.syncChannel = new BroadcastChannel(g.NAMESPACE + 'sync')