Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このコードを見ると、user.login() などのメソッドの呼び出しにはドメインが含まれていないため、grunt dev タスクを介して実行している場合にのみ機能するように見えることがわかります。
これが初心者の質問である場合は申し訳ありませんが、どうすればこれを製品化できますか? サイトのスクリプトから user.isLoggedIn() と user.logout() を呼び出すだけですが、dist ファイルでそれを行う方法がわかりません。