Update adapter.js

Removed Alert