fix: drop directory on webkit browsers