mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-05-30 15:19:37 +03:00
Prevent tracker script from being ran twice
This commit is contained in:
parent
b9d50ddb01
commit
fbbbbcd39c
2
build.py
2
build.py
@ -7,7 +7,7 @@ import sys
|
||||
import os
|
||||
|
||||
|
||||
EXEC_UGLIFYJS = "uglifyjs --compress --mangle --mangle-props --reserve-domprops --reserved-file reserve.txt --screw-ie8 --output \"{1}\" \"{0}\""
|
||||
EXEC_UGLIFYJS = "uglifyjs --bare-returns --compress --mangle --mangle-props --reserve-domprops --reserved-file reserve.txt --screw-ie8 --output \"{1}\" \"{0}\""
|
||||
EXEC_CLOSURECOMPILER = "java -jar lib/closure-compiler-v20160911.jar --js \"{0}\" --js_output_file \"{1}\""
|
||||
EXEC_YUI = "java -jar lib/yuicompressor-2.4.8.jar --charset utf-8 --line-break 160 --type css -o \"{1}\" \"{0}\""
|
||||
|
||||
|
@ -1,3 +1,10 @@
|
||||
if (window.DHT_LOADED){
|
||||
alert("Discord History Tracker is already loaded.");
|
||||
return;
|
||||
}
|
||||
|
||||
window.DHT_LOADED = true;
|
||||
|
||||
DISCORD.setupMessageRequestHook((channel, messages) => {
|
||||
if (STATE.isTracking()){
|
||||
var info = DISCORD.getSelectedChannel();
|
||||
|
Loading…
x
Reference in New Issue
Block a user