If it has a cord some cruise lines (in the small print) reserve the right to confiscate if they think it is 'unsafe'. I would recommend the following:
https://www.amazon.com/dp/B07R15ZQZH/ref=psdc_6396125011_t3_B07MTR4DTB