modify to cmd only, remove Function() call to fit chrome app restriction